aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
Diffstat (limited to 'queries')
-rw-r--r--queries/cmake/highlights.scm14
1 files changed, 14 insertions, 0 deletions
diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm
index b1835c7aa..0e846507d 100644
--- a/queries/cmake/highlights.scm
+++ b/queries/cmake/highlights.scm
@@ -222,6 +222,20 @@
(#match? @constant "RESULT_VARIABLE")
)
+(normal_command
+ (identifier) @_function
+ (#match? @_function "\\c^project$")
+ (argument) @constant
+ (#any-of? @constant "VERSION" "DESCRIPTION" "HOMEPAGE_URL" "LANGUAGES")
+)
+
+(normal_command
+ (identifier) @_function
+ (#match? @_function "\\c^cmake_minimum_required$")
+ (argument) @constant
+ (#any-of? @constant "VERSION" "FATAL_ERROR")
+)
+
(escape_sequence) @string.escape
((source_file . (line_comment) @preproc)