mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
Add comment parsing and highlight whole bracket argument
This commit is contained in:
parent
6a2ce27949
commit
e121e52b2d
1 changed files with 7 additions and 2 deletions
|
|
@ -1,22 +1,27 @@
|
||||||
[
|
[
|
||||||
(quoted_argument)
|
(quoted_argument)
|
||||||
(bracket_content)
|
(bracket_argument)
|
||||||
] @string
|
] @string
|
||||||
|
|
||||||
(variable_ref) @variable
|
(variable_ref) @variable
|
||||||
|
|
||||||
|
[
|
||||||
|
(bracket_comment)
|
||||||
|
(line_comment)
|
||||||
|
] @comment
|
||||||
|
|
||||||
[
|
[
|
||||||
"$ENV"
|
"$ENV"
|
||||||
"$CACHE"
|
"$CACHE"
|
||||||
] @variable.builtin
|
] @variable.builtin
|
||||||
|
|
||||||
(normal_command (identifier) @function)
|
(normal_command (identifier) @function)
|
||||||
|
|
||||||
[
|
[
|
||||||
(function)
|
(function)
|
||||||
(endfunction)
|
(endfunction)
|
||||||
(macro)
|
(macro)
|
||||||
(endmacro)
|
(endmacro)
|
||||||
(message)
|
|
||||||
] @function
|
] @function
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue