Address highlight comments about cwd, path, module

This commit is contained in:
Ronnie Magatti 2021-09-13 23:32:40 -06:00 committed by Stephan Seitz
parent dcf20b8a23
commit 016c757d11

View file

@ -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