mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 04:10:06 -04:00
Highlight only command name instead of the whole call
This commit is contained in:
parent
4bc6b7c85a
commit
4ab1647f20
1 changed files with 14 additions and 14 deletions
|
|
@ -11,27 +11,27 @@
|
||||||
"$CACHE"
|
"$CACHE"
|
||||||
] @variable.builtin
|
] @variable.builtin
|
||||||
|
|
||||||
|
(normal_command (identifier) @function)
|
||||||
[
|
[
|
||||||
(normal_command)
|
(function)
|
||||||
(function_command)
|
(endfunction)
|
||||||
(endfunction_command)
|
(macro)
|
||||||
(macro_command)
|
(endmacro)
|
||||||
(endmacro_command)
|
(message)
|
||||||
(message_command)
|
|
||||||
] @function
|
] @function
|
||||||
|
|
||||||
[
|
[
|
||||||
(if_command)
|
(if)
|
||||||
(elseif_command)
|
(elseif)
|
||||||
(else_command)
|
(else)
|
||||||
(endif_command)
|
(endif)
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
[
|
[
|
||||||
(foreach_command)
|
(foreach)
|
||||||
(endforeach_command)
|
(endforeach)
|
||||||
(while_command)
|
(while)
|
||||||
(endwhile_command)
|
(endwhile)
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue