mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-04 12:30:01 -04:00
Address highlight comments about cwd, path, module
This commit is contained in:
parent
dcf20b8a23
commit
016c757d11
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue