mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -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)
|
||||
(bracket_content)
|
||||
(bracket_argument)
|
||||
] @string
|
||||
|
||||
(variable_ref) @variable
|
||||
|
||||
[
|
||||
(bracket_comment)
|
||||
(line_comment)
|
||||
] @comment
|
||||
|
||||
[
|
||||
"$ENV"
|
||||
"$CACHE"
|
||||
] @variable.builtin
|
||||
|
||||
(normal_command (identifier) @function)
|
||||
|
||||
[
|
||||
(function)
|
||||
(endfunction)
|
||||
(macro)
|
||||
(endmacro)
|
||||
(message)
|
||||
] @function
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue