summaryrefslogtreecommitdiff
path: root/queries/cmake
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 /queries/cmake
parentc214c7c5639c9748e6bac0fa2fe483982d957e97 (diff)
Change captures:
- Disable highlight for `variable_ref` - Capture `ENV` and `CACHE` as `@symbol` - Capture '$', '{', '}', '(', ')' as punctuation
Diffstat (limited to 'queries/cmake')
-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 a6195038..f20fe617 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)