mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
add queries project and cmake_minimum_required
This commit is contained in:
parent
3ac093e702
commit
69388e84c3
1 changed files with 14 additions and 0 deletions
|
|
@ -222,6 +222,20 @@
|
||||||
(#match? @constant "RESULT_VARIABLE")
|
(#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
|
(escape_sequence) @string.escape
|
||||||
|
|
||||||
((source_file . (line_comment) @preproc)
|
((source_file . (line_comment) @preproc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue