From 69388e84c34d40c3d5c7d2f310db13276f2179e1 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Fri, 9 Dec 2022 00:39:06 +0100 Subject: add queries `project` and `cmake_minimum_required` --- queries/cmake/highlights.scm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'queries') 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) -- cgit v1.2.3-70-g09d2