diff options
| author | Uy Ha <hchanuy@gmail.com> | 2022-12-09 00:39:06 +0100 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2022-12-13 21:17:48 +0100 |
| commit | 69388e84c34d40c3d5c7d2f310db13276f2179e1 (patch) | |
| tree | e05ed954a44c466afb6a2e674f34eb06f8bce1cc /queries | |
| parent | remove redundant parentheses (diff) | |
| download | nvim-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 | |
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/cmake/highlights.scm | 14 |
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) |
