diff options
| author | Uy Ha <hchanuy@gmail.com> | 2021-09-10 15:07:13 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-09-10 21:11:38 +0200 |
| commit | d6c7996412266080d59bb23bdf2b5299af8b49a3 (patch) | |
| tree | a5e53735b45182d0b6e8b0e21b98554e6b746d24 | |
| parent | 25956f427421915bc1130a5b31d26da4bbe6e1ed (diff) | |
[cmake] add highlights for `add_custom_target` and `add_custom_command`
| -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)$") +) + |
