mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 21:40:03 -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"
|
||||
] @variable.builtin
|
||||
|
||||
(normal_command (identifier) @function)
|
||||
[
|
||||
(normal_command)
|
||||
(function_command)
|
||||
(endfunction_command)
|
||||
(macro_command)
|
||||
(endmacro_command)
|
||||
(message_command)
|
||||
(function)
|
||||
(endfunction)
|
||||
(macro)
|
||||
(endmacro)
|
||||
(message)
|
||||
] @function
|
||||
|
||||
[
|
||||
(if_command)
|
||||
(elseif_command)
|
||||
(else_command)
|
||||
(endif_command)
|
||||
(if)
|
||||
(elseif)
|
||||
(else)
|
||||
(endif)
|
||||
] @conditional
|
||||
|
||||
[
|
||||
(foreach_command)
|
||||
(endforeach_command)
|
||||
(while_command)
|
||||
(endwhile_command)
|
||||
(foreach)
|
||||
(endforeach)
|
||||
(while)
|
||||
(endwhile)
|
||||
] @repeat
|
||||
|
||||
[
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue