Jaehwang Jung
a0dc6c8635
highlights(lua): use @method.call
2022-12-15 12:42:51 +01:00
Christian Clason
e7bdcee167
lua: update queries
2022-11-01 13:41:33 +01:00
beardedsakimonkey
e218a862a1
locals(lua): fix directive not applying
...
fixes #3280
2022-10-17 08:21:55 +02:00
ObserverOfTime
9b43ab819c
highlights: use @preproc where appropriate
2022-10-15 08:49:01 -07:00
Lewis Russell
37398c7d68
feat(spell): support more languages
2022-09-26 13:47:12 +01:00
Lewis Russell
c836f946a9
highlights(lua): add spell
2022-09-12 11:02:35 +01:00
numToStr
2f671dfa36
change: allow one or more leading ;
2022-08-23 14:04:26 -07:00
numToStr
383d152783
injections(lua): highlight string as query if starts with ;; query
2022-08-23 14:04:26 -07:00
lfenzo
c784720917
Split func/method definition from calls in several programming language queries
2022-08-03 12:05:30 -07:00
Kiyan
d7f06bfb13
fix(indents): indents for error block (css, lua) ( #3207 )
2022-07-21 13:48:03 +02:00
Janfel
881b932893
highlights(lua): use #eq? instead of #match?
...
Co-authored-by: Santos Gallegos <stsewd@protonmail.com>
2022-06-24 20:27:58 +02:00
Janfel
8d43730388
highlights(lua): highlight only self as self
...
Before, all identifiers containing the substring "self" were highlighted as the builtin `self`. Now, only the identifier `self` is highlighted as `self`.
2022-06-24 20:27:58 +02:00
Jędrzej Boczar
717fef738b
fix(indent/lua): wrong for nested tables due to branch on opening pairs
2022-04-06 21:28:11 +02:00
Connor Lay (Clay)
ab372a88ef
Inject query into lua for set_query calls
2022-04-06 18:21:45 +02:00
Christian Clason
6ece0ca4e6
fix(lua): restore precedence for @variable.builtin and @constant.builtin
2022-03-12 23:00:08 +01:00
Stephan Seitz
5fd68ba0c2
indents(lua): make ")" `@indent_end
...
Fixes #2476
2022-02-06 20:47:15 +01:00
Stephan Seitz
a14970861c
indents(lua): use (comment) @auto
2022-02-05 18:54:55 +01:00
Stephan Seitz
1b0a74afa8
indent(lua): ignore comment
2022-02-05 18:54:55 +01:00
Stephan Seitz
ff96940767
docs: add @zero_indent to CONTRIBUTING.md
2022-02-05 18:54:55 +01:00
Stephan Seitz
eb2b73a5b0
indents(lua): fix comment indentation
2022-02-05 18:54:55 +01:00
Stephan Seitz
b06961a519
fix(indents): re-parse before each indent
2022-02-05 18:54:55 +01:00
Munif Tanjim
11e7ee1d91
fix(indent): lua - support @indent_end ( #2454 )
2022-02-04 22:08:18 +01:00
Stephan Seitz
fa8172ffb4
highlights(lua): don't highlight arguments as parameters
2022-01-30 09:55:48 +01:00
Munif Tanjim
c0110e34aa
feat: rewrite indent module
2022-01-21 10:51:51 +01:00
Munif Tanjim
baf94219aa
feat: improve indent module
...
get_node_at_line should return appropriate child if available
2022-01-21 10:51:51 +01:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's ( #2272 )
...
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
2022-01-18 22:15:26 +01:00
numToStr
63630ec082
highlights(lua): next as builtin function
2021-12-13 20:22:05 +01:00
Lewis Russell
011ac894ec
Prefer lua-match over match
...
as string.find is much quicker than vim.regex:match*
2021-11-23 10:02:06 +01:00
vhyrro
d78fb79ed6
Add basic vimscript injection in vim.cmd/nvim_command/nvim_exec ( #1922 )
2021-11-16 21:14:22 -05:00
Stephan Seitz
b7c95eef95
injections(lua): fix cdef injection
...
Fixes #1840
2021-09-25 00:59:40 +02:00
Sergio Alejandro Vargas
a5f62c5764
highlights(lua): Add Lua 5.1 built-in functions
2021-09-01 07:07:16 +02:00
Sergio Alejandro Vargas
a1be6c9d4f
highlights(lua): Add semicolons
2021-08-17 10:18:33 +02:00
Santos Gallegos
460a26ef32
Lua: highlight uppercase variables as constants ( #1690 )
2021-08-14 13:33:55 -05:00
Sergio Alejandro Vargas
50a77bbc22
highlights(lua): Organize function_call queries
2021-08-02 15:52:56 +02:00
Sergio Alejandro Vargas
0ed69e50a8
highlights(lua): Fix method calls
...
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-08-02 15:52:56 +02:00
Santos Gallegos
989fc7aa6c
Lua: highlight function definitions
...
In lua
```lua
function foo() end
```
is syntax sugar for
```lua
foo = function() end
```
2021-07-07 23:17:43 +02:00
antonk52
90f15d9bf7
feat(keywords) merge return and yield into keyword.return group
2021-07-04 21:49:17 +02:00
antonk52
bd9095e969
feat(keywords) add keyword.return & keyword.yield
2021-07-04 21:49:17 +02:00
Folke Lemaitre
d1f6a2a3d8
feat: added self as builtin keyword for Lua
2021-06-17 15:53:20 +02:00
Sergio Alejandro Vargas
4ad6c526f3
Add do_statement to lua folds
2021-05-16 21:26:06 +02:00
Santos Gallegos
67f0857015
Revert "Comment: use @combined to create just one tree per buffer ( #1252 )"
...
This reverts commit 4a7a713c52 .
2021-05-07 16:51:57 +02:00
Santos Gallegos
4a7a713c52
Comment: use @combined to create just one tree per buffer ( #1252 )
...
* 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-28 07:19:07 -05:00
Thomas Vigouroux
f0ab5edab9
fix(lua): correctly highlight field names
2021-04-22 17:51:43 +02:00
Santos Gallegos
e4083fc8e1
Add comment parser to highlight comment tags ( #893 )
...
Closes #236
2021-03-12 11:21:46 -05:00
elianiva
0bf8f58cd2
feat: use @ignore for comments and multiline strings
2021-03-01 23:28:53 +01:00
kiyan
2d82a7fe07
add do statement to lua indents
2021-02-23 00:28:43 +01:00
Santos Gallegos
98127bded6
Lua: highlight fields
2021-02-10 22:15:17 +01:00
Santos Gallegos
e5319aa9aa
Lua: improve scope queries
...
- Set scope to parent
- Group all scopes
- Use the . operator
2021-02-07 15:26:34 +01:00
Thomas Vigouroux
12181e236e
fix(lua): correctly handle do_statement in locals
2021-01-27 10:21:37 +01:00
Thomas Vigouroux
b8a7f0ea38
fix(lua): correctly highlight do_statement
2021-01-27 10:21:37 +01:00