aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUy Ha <hchanuy@gmail.com>2022-12-09 00:39:06 +0100
committerStephan Seitz <stephan.seitz@fau.de>2022-12-13 21:17:48 +0100
commit69388e84c34d40c3d5c7d2f310db13276f2179e1 (patch)
treee05ed954a44c466afb6a2e674f34eb06f8bce1cc
parentremove redundant parentheses (diff)
downloadnvim-treesitter-0.8.1.tar
nvim-treesitter-0.8.1.tar.gz
nvim-treesitter-0.8.1.tar.bz2
nvim-treesitter-0.8.1.tar.lz
nvim-treesitter-0.8.1.tar.xz
nvim-treesitter-0.8.1.tar.zst
nvim-treesitter-0.8.1.zip
add queries `project` and `cmake_minimum_required`v0.8.1v0.8.0
-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)