mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
[cmake] add highlights for add_custom_target and add_custom_command
This commit is contained in:
parent
5a8b5ab019
commit
d74ad4d2d6
1 changed files with 18 additions and 0 deletions
|
|
@ -80,3 +80,21 @@
|
|||
"VERSION_LESS" "VERSION_GREATER" "VERSION_EQUAL" "VERSION_LESS_EQUAL" "VERSION_GREATER_EQUAL"
|
||||
)
|
||||
)
|
||||
|
||||
(normal_command
|
||||
(identifier) @function.builtin
|
||||
. (argument)
|
||||
(argument) @constant
|
||||
(#any-of? @constant "ALL" "COMMAND" "DEPENDS" "BYPRODUCTS" "WORKING_DIRECTORY" "COMMENT"
|
||||
"JOB_POOL" "VERBATIM" "USES_TERMINAL" "COMMAND_EXPAND_LISTS" "SOURCES")
|
||||
(#match? @function.builtin "\\c^(add_custom_target)$")
|
||||
)
|
||||
|
||||
(normal_command
|
||||
(identifier) @function.builtin
|
||||
(argument) @constant
|
||||
(#any-of? @constant "OUTPUT" "COMMAND" "MAIN_DEPENDENCY" "DEPENDS" "BYPRODUCTS" "IMPLICIT_DEPENDS" "WORKING_DIRECTORY"
|
||||
"COMMENT" "DEPFILE" "JOB_POOL" "VERBATIM" "APPEND" "USES_TERMINAL" "COMMAND_EXPAND_LISTS")
|
||||
(#match? @function.builtin "\\c^(add_custom_command)$")
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue