diff options
| -rw-r--r-- | queries/hcl/highlights.scm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/queries/hcl/highlights.scm b/queries/hcl/highlights.scm index 7cfb163a..5305df96 100644 --- a/queries/hcl/highlights.scm +++ b/queries/hcl/highlights.scm @@ -86,9 +86,10 @@ ; highlight identifier keys as though they were block attributes (object_elem key: (expression (variable_expr (identifier) @field))) -(variable_expr (identifier) @variable.builtin (#any-of? @variable.builtin "var" "local")) -((identifier) @keyword (#any-of? @keyword "module" "resource" "variable" "data" "locals" "terraform" "provider" "output")) +((identifier) @keyword (#any-of? @keyword "module" "root" "cwd" "resource" "variable" "data" "locals" "terraform" "provider" "output")) ((identifier) @type.builtin (#any-of? @type.builtin "bool" "string" "number" "object" "tuple" "list" "map" "set" "any")) +(variable_expr (identifier) @variable.builtin (#any-of? @variable.builtin "var" "local" "path")) +(get_attr (identifier) @variable.builtin (#any-of? @variable.builtin "root" "cwd" "module")) (object_elem val: (expression (variable_expr |
