summaryrefslogtreecommitdiff
path: root/queries/lua
AgeCommit message (Collapse)Author
2022-10-17locals(lua): fix directive not applyingbeardedsakimonkey
fixes #3280
2022-10-15highlights: use @preproc where appropriateObserverOfTime
2022-09-26feat(spell): support more languagesLewis Russell
2022-09-12highlights(lua): add spellLewis Russell
2022-08-23change: allow one or more leading `;`numToStr
2022-08-23injections(lua): highlight string as `query` if starts with `;; query`numToStr
2022-08-03Split func/method definition from calls in several programming language querieslfenzo
2022-07-21fix(indents): indents for error block (css, lua) (#3207)Kiyan
2022-06-24highlights(lua): use `#eq?` instead of `#match?`Janfel
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2022-06-24highlights(lua): highlight only `self` as `self`Janfel
Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
2022-04-06fix(indent/lua): wrong for nested tables due to branch on opening pairsJędrzej Boczar
2022-04-06Inject query into lua for set_query callsConnor Lay (Clay)
2022-03-12fix(lua): restore precedence for @variable.builtin and @constant.builtinChristian Clason
2022-02-06indents(lua): make ")" `@indent_endStephan Seitz
Fixes #2476
2022-02-05indents(lua): use `(comment) @auto`Stephan Seitz
2022-02-05indent(lua): ignore commentStephan Seitz
2022-02-05docs: add `@zero_indent` to CONTRIBUTING.mdStephan Seitz
2022-02-05indents(lua): fix comment indentationStephan Seitz
2022-02-05fix(indents): re-parse before each indentStephan Seitz
2022-02-04fix(indent): lua - support `@indent_end` (#2454)Munif Tanjim
2022-01-30highlights(lua): don't highlight arguments as parametersStephan Seitz
2022-01-21feat: rewrite indent moduleMunif Tanjim
2022-01-21feat: improve indent moduleMunif Tanjim
get_node_at_line should return appropriate child if available
2022-01-18feat(lua)!: switch from our fork to MunifTanjim's (#2272)Christian Clason
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua BREAKING CHANGE: queries are not compatible; modules will have to update
2021-12-13highlights(lua): `next` as builtin functionnumToStr
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-11-16Add basic vimscript injection in `vim.cmd`/`nvim_command`/`nvim_exec` (#1922)vhyrro
2021-09-25injections(lua): fix cdef injectionStephan Seitz
Fixes #1840
2021-09-01highlights(lua): Add Lua 5.1 built-in functionsSergio Alejandro Vargas
2021-08-17highlights(lua): Add semicolonsSergio Alejandro Vargas
2021-08-14Lua: highlight uppercase variables as constants (#1690)Santos Gallegos
2021-08-02highlights(lua): Organize `function_call` queriesSergio Alejandro Vargas
2021-08-02highlights(lua): Fix method callsSergio Alejandro Vargas
The usual `function_call` query would highlight the objects at the beginning of a method call. The `method` query has to account for this, and highlight the identifier as a variable again.
2021-07-07Lua: highlight function definitionsSantos Gallegos
In lua ```lua function foo() end ``` is syntax sugar for ```lua foo = function() end ```
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-06-17feat: added `self` as builtin keyword for LuaFolke Lemaitre
2021-05-16Add `do_statement` to lua foldsSergio Alejandro Vargas
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
2021-04-22fix(lua): correctly highlight field namesThomas Vigouroux
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-03-01feat: use @ignore for comments and multiline stringselianiva
2021-02-23add do statement to lua indentskiyan
2021-02-10Lua: highlight fieldsSantos Gallegos
2021-02-07Lua: improve scope queriesSantos Gallegos
- Set scope to parent - Group all scopes - Use the . operator
2021-01-27fix(lua): correctly handle do_statement in localsThomas Vigouroux
2021-01-27fix(lua): correctly highlight do_statementThomas Vigouroux
2021-01-20lua: Add more indent nodesLewis Russell
2021-01-04indent fixeskiyan42