mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-12 08:20:05 -04:00
feat(latex): improve parameters
Signed-off-by: Jonas Dujava <jonas.dujava@gmail.com>
This commit is contained in:
parent
820b14a34c
commit
3fa183e34e
1 changed files with 7 additions and 6 deletions
|
|
@ -4,8 +4,6 @@
|
||||||
(caption
|
(caption
|
||||||
command: _ @function)
|
command: _ @function)
|
||||||
|
|
||||||
(placeholder) @variable
|
|
||||||
|
|
||||||
; Turn spelling on for text
|
; Turn spelling on for text
|
||||||
(text) @spell
|
(text) @spell
|
||||||
|
|
||||||
|
|
@ -15,14 +13,17 @@
|
||||||
content: (curly_group
|
content: (curly_group
|
||||||
(_) @none @spell))
|
(_) @none @spell))
|
||||||
|
|
||||||
|
; Variables, parameters
|
||||||
|
(placeholder) @variable
|
||||||
|
|
||||||
(key_value_pair
|
(key_value_pair
|
||||||
key: (_) @variable.parameter @nospell
|
key: (_) @variable.parameter @nospell
|
||||||
value: (_))
|
value: (_))
|
||||||
|
|
||||||
[
|
(curly_group_spec
|
||||||
(brack_group)
|
(text) @variable.parameter)
|
||||||
(brack_group_argc)
|
|
||||||
] @variable.parameter
|
(brack_group_argc) @variable.parameter
|
||||||
|
|
||||||
[
|
[
|
||||||
(operator)
|
(operator)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue