mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-15 18:00:07 -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
|
(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