add queries project and cmake_minimum_required

This commit is contained in:
Uy Ha 2022-12-09 00:39:06 +01:00 committed by Stephan Seitz
parent 3ac093e702
commit 69388e84c3

View file

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