mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 19:00:02 -04:00
Change captures:
- Disable highlight for `variable_ref`
- Capture `ENV` and `CACHE` as `@symbol`
- Capture '$', '{', '}', '(', ')' as punctuation
This commit is contained in:
parent
c214c7c563
commit
a8a7200241
1 changed files with 5 additions and 6 deletions
|
|
@ -3,20 +3,19 @@
|
||||||
(bracket_argument)
|
(bracket_argument)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
(variable_ref) @variable
|
(variable_ref) @none
|
||||||
|
|
||||||
[
|
[
|
||||||
(bracket_comment)
|
(bracket_comment)
|
||||||
(line_comment)
|
(line_comment)
|
||||||
] @comment
|
] @comment
|
||||||
|
|
||||||
[
|
|
||||||
"$ENV"
|
|
||||||
"$CACHE"
|
|
||||||
] @variable.builtin
|
|
||||||
|
|
||||||
(normal_command (identifier) @function)
|
(normal_command (identifier) @function)
|
||||||
|
|
||||||
|
["ENV" "CACHE"] @symbol
|
||||||
|
["$" "{" "}"] @punctuation.special
|
||||||
|
["(" ")"] @punctuation.bracket
|
||||||
|
|
||||||
[
|
[
|
||||||
(function)
|
(function)
|
||||||
(endfunction)
|
(endfunction)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue