mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
[cmake]: Add highlighting for set command
This commit is contained in:
parent
ef1c89f73c
commit
16f4833b57
1 changed files with 14 additions and 0 deletions
|
|
@ -50,3 +50,17 @@
|
|||
(argument)* @parameter
|
||||
)
|
||||
|
||||
(normal_command
|
||||
(identifier) @function.builtin
|
||||
. (argument) @variable
|
||||
(#match? @function.builtin "\\c^(set)$"))
|
||||
|
||||
(normal_command
|
||||
(identifier) @function.builtin
|
||||
. (argument)
|
||||
. (argument)
|
||||
(argument) @constant
|
||||
(#any-of? @constant "PARENT_SCOPE" "CACHE" "FORCE")
|
||||
(#match? @function.builtin "\\c^(set)$")
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue