[cmake] add highlights for add_custom_target and add_custom_command

This commit is contained in:
Uy Ha 2021-09-10 15:07:13 +02:00 committed by Stephan Seitz
parent 5a8b5ab019
commit d74ad4d2d6

View file

@ -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)$")
)