From a8a7200241673db775654e43388e48ca60520c22 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Wed, 30 Jun 2021 21:03:17 +0200 Subject: Change captures: - Disable highlight for `variable_ref` - Capture `ENV` and `CACHE` as `@symbol` - Capture '$', '{', '}', '(', ')' as punctuation --- queries/cmake/highlights.scm | 11 +++++------ 1 file 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) -- cgit v1.2.3-70-g09d2