diff options
| author | mhoffm <mhoffm@posteo.de> | 2021-06-30 23:39:24 +0200 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-07-02 01:56:25 +0200 |
| commit | 1914317ae7075b35fd19c6f135ad1cc1ae0863ab (patch) | |
| tree | da074775b6b0324771f7355540c0121ef8e39da5 | |
| parent | use version 0.3.1 of the hcl parser in lockfile.json (diff) | |
| download | nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.tar nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.tar.gz nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.tar.bz2 nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.tar.lz nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.tar.xz nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.tar.zst nvim-treesitter-1914317ae7075b35fd19c6f135ad1cc1ae0863ab.zip | |
work on queries
| -rw-r--r-- | queries/hcl/highlights.scm | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm index 2e0929fc9..b53faf040 100644 --- a/queries/hcl/highlights.scm +++ b/queries/hcl/highlights.scm @@ -36,11 +36,15 @@ [ (ellipsis) "\?" - ":" "=>" ] @punctuation.special [ + ":" + "=" +] @none + +[ "for" "in" ] @repeat @@ -55,19 +59,22 @@ (heredoc_template) ] @string + +[ + (heredoc_identifier) @punctuation.delimiter + (heredoc_start) @punctuation.delimiter +] + (template_interpolation) @string.escape -(heredoc_identifier) @namespace -(heredoc_start) @namespace (numeric_lit) @number (bool_lit) @boolean (null_lit) @constant (comment) @comment (identifier) @symbol -(block (identifier) @namespace) +(block (identifier) @type) (function_call (identifier) @function) -(function_call (function_arguments) @parameter) -(attribute (identifier) @symbol) +(attribute (identifier) @keyword) (ERROR) @error |
