diff options
| -rw-r--r-- | queries/cmake/highlights.scm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm index 72019173..d1f59967 100644 --- a/queries/cmake/highlights.scm +++ b/queries/cmake/highlights.scm @@ -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)$") +) + |
