diff options
| author | mhoffm <mhoffm@posteo.de> | 2021-06-28 20:05:27 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-07-02 01:56:25 +0200 |
| commit | 4a29ccba9b5c89e1994352786f45900da958e6d4 (patch) | |
| tree | 4d124aab17753683476b025a788656389bd98bfc | |
| parent | add hcl parser (diff) | |
| download | nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.tar nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.tar.gz nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.tar.bz2 nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.tar.lz nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.tar.xz nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.tar.zst nvim-treesitter-4a29ccba9b5c89e1994352786f45900da958e6d4.zip | |
improve queries
| -rw-r--r-- | queries/hcl/highlights.scm | 17 |
1 files 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 |
