aboutsummaryrefslogtreecommitdiffstats
path: root/queries/lua
Commit message (Collapse)AuthorAgeFilesLines
...
* lua: update queriesChristian Clason2022-11-011-0/+5
|
* locals(lua): fix directive not applyingbeardedsakimonkey2022-10-171-6/+6
| | | | fixes #3280
* highlights: use @preproc where appropriateObserverOfTime2022-10-151-1/+1
|
* feat(spell): support more languagesLewis Russell2022-09-261-4/+2
|
* highlights(lua): add spellLewis Russell2022-09-121-0/+2
|
* change: allow one or more leading `;`numToStr2022-08-231-1/+1
|
* injections(lua): highlight string as `query` if starts with `;; query`numToStr2022-08-231-0/+3
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-2/+2
|
* fix(indents): indents for error block (css, lua) (#3207)Kiyan2022-07-211-0/+2
|
* highlights(lua): use `#eq?` instead of `#match?`Janfel2022-06-241-1/+1
| | | Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
* highlights(lua): highlight only `self` as `self`Janfel2022-06-241-1/+1
| | | Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
* fix(indent/lua): wrong for nested tables due to branch on opening pairsJędrzej Boczar2022-04-061-3/+0
|
* Inject query into lua for set_query callsConnor Lay (Clay)2022-04-061-0/+5
|
* fix(lua): restore precedence for @variable.builtin and @constant.builtinChristian Clason2022-03-121-14/+12
|
* indents(lua): make ")" `@indent_endStephan Seitz2022-02-061-0/+2
| | | | Fixes #2476
* indents(lua): use `(comment) @auto`Stephan Seitz2022-02-051-1/+0
|
* indent(lua): ignore commentStephan Seitz2022-02-051-0/+1
|
* docs: add `@zero_indent` to CONTRIBUTING.mdStephan Seitz2022-02-051-1/+0
|
* indents(lua): fix comment indentationStephan Seitz2022-02-051-1/+1
|
* fix(indents): re-parse before each indentStephan Seitz2022-02-051-0/+1
|
* fix(indent): lua - support `@indent_end` (#2454)Munif Tanjim2022-02-041-0/+4
|
* highlights(lua): don't highlight arguments as parametersStephan Seitz2022-01-301-2/+0
|
* feat: rewrite indent moduleMunif Tanjim2022-01-211-2/+6
|
* feat: improve indent moduleMunif Tanjim2022-01-211-4/+7
| | | | get_node_at_line should return appropriate child if available
* feat(lua)!: switch from our fork to MunifTanjim's (#2272)Christian Clason2022-01-185-194/+177
| | | | | 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
* highlights(lua): `next` as builtin functionnumToStr2021-12-131-0/+3
|
* Prefer lua-match over matchLewis Russell2021-11-232-5/+5
| | | | as string.find is much quicker than vim.regex:match*
* Add basic vimscript injection in `vim.cmd`/`nvim_command`/`nvim_exec` (#1922)vhyrro2021-11-161-0/+26
|
* injections(lua): fix cdef injectionStephan Seitz2021-09-251-0/+15
| | | | Fixes #1840
* highlights(lua): Add Lua 5.1 built-in functionsSergio Alejandro Vargas2021-09-011-0/+9
|
* highlights(lua): Add semicolonsSergio Alejandro Vargas2021-08-171-1/+1
|
* Lua: highlight uppercase variables as constants (#1690)Santos Gallegos2021-08-141-0/+2
|
* highlights(lua): Organize `function_call` queriesSergio Alejandro Vargas2021-08-021-3/+6
|
* highlights(lua): Fix method callsSergio Alejandro Vargas2021-08-021-1/+1
| | | | | | 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.
* Lua: highlight function definitionsSantos Gallegos2021-07-071-0/+5
| | | | | | | | | | | | | | In lua ```lua function foo() end ``` is syntax sugar for ```lua foo = function() end ```
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* feat: added `self` as builtin keyword for LuaFolke Lemaitre2021-06-171-0/+2
|
* Add `do_statement` to lua foldsSergio Alejandro Vargas2021-05-161-0/+1
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos2021-04-281-1/+1
| | | | | | | | | | | | * 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
* fix(lua): correctly highlight field namesThomas Vigouroux2021-04-221-1/+2
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+2
| | | Closes #236
* feat: use @ignore for comments and multiline stringselianiva2021-03-011-0/+2
|
* add do statement to lua indentskiyan2021-02-231-0/+1
|
* Lua: highlight fieldsSantos Gallegos2021-02-101-0/+1
|
* Lua: improve scope queriesSantos Gallegos2021-02-071-12/+12
| | | | | | - Set scope to parent - Group all scopes - Use the . operator
* fix(lua): correctly handle do_statement in localsThomas Vigouroux2021-01-271-8/+12
|
* fix(lua): correctly highlight do_statementThomas Vigouroux2021-01-271-0/+6
|
* lua: Add more indent nodesLewis Russell2021-01-201-0/+4
|