From 4a29ccba9b5c89e1994352786f45900da958e6d4 Mon Sep 17 00:00:00 2001 From: mhoffm Date: Mon, 28 Jun 2021 20:05:27 +0200 Subject: [PATCH] improve queries --- queries/hcl/highlights.scm | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm index 135351ac3..cf33e0610 100644 --- a/queries/hcl/highlights.scm +++ b/queries/hcl/highlights.scm @@ -24,21 +24,21 @@ "]" "(" ")" - "[*]" - ".*" -] @specialChar +] @punctuation.bracket [ "." + ".*" "," -] @specialChar + "[*]" +] @punctuation.delimiter [ (ellipsis) "\?" ":" "=>" -] @special +] @punctuation.special [ "for" @@ -55,18 +55,19 @@ (heredoc_template) ] @string +(template_interpolation) @string.escape + (heredoc_identifier) @namespace (heredoc_start) @namespace -(template_interpolation) @statement (numeric_lit) @number (bool_lit) @boolean (null_lit) @constant (comment) @comment -(identifier) @identifier +(identifier) @variable (block (identifier) @namespace) (function_call (identifier) @function) (function_call (function_arguments) @parameter) -(attribute (identifier) @symbol) +(attribute (identifier) @definition.var) (ERROR) @error