aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUy Ha <hchanuy@gmail.com>2021-06-30 21:03:17 +0200
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-02 08:37:02 +0200
commita8a7200241673db775654e43388e48ca60520c22 (patch)
treec53724631eca48dd4716cdf7aaa2c212991cfc62
parentRemove query for specific keywords for now (diff)
downloadnvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.tar
nvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.tar.gz
nvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.tar.bz2
nvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.tar.lz
nvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.tar.xz
nvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.tar.zst
nvim-treesitter-a8a7200241673db775654e43388e48ca60520c22.zip
Change captures:
- Disable highlight for `variable_ref` - Capture `ENV` and `CACHE` as `@symbol` - Capture '$', '{', '}', '(', ')' as punctuation
-rw-r--r--queries/cmake/highlights.scm11
1 files changed, 5 insertions, 6 deletions
diff --git a/queries/cmake/highlights.scm b/queries/cmake/highlights.scm
index a61950387..f20fe6179 100644
--- a/queries/cmake/highlights.scm
+++ b/queries/cmake/highlights.scm
@@ -3,20 +3,19 @@
(bracket_argument)
] @string
-(variable_ref) @variable
+(variable_ref) @none
[
(bracket_comment)
(line_comment)
] @comment
-[
- "$ENV"
- "$CACHE"
-] @variable.builtin
-
(normal_command (identifier) @function)
+["ENV" "CACHE"] @symbol
+["$" "{" "}"] @punctuation.special
+["(" ")"] @punctuation.bracket
+
[
(function)
(endfunction)