mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 17:30:08 -04:00
feat(powershell): added data section name highlights
This commit is contained in:
parent
929e4739cc
commit
fcf79acfd1
2 changed files with 11 additions and 3 deletions
|
|
@ -67,7 +67,10 @@
|
||||||
"enum"
|
"enum"
|
||||||
] @keyword.type
|
] @keyword.type
|
||||||
|
|
||||||
(class_attribute) @keyword.modifier
|
[
|
||||||
|
"data"
|
||||||
|
(class_attribute)
|
||||||
|
] @keyword.modifier
|
||||||
|
|
||||||
[
|
[
|
||||||
"throw"
|
"throw"
|
||||||
|
|
@ -87,8 +90,6 @@
|
||||||
"begin"
|
"begin"
|
||||||
"process"
|
"process"
|
||||||
"end"
|
"end"
|
||||||
; TODO: not supported by parser yet, can be used to declare constants
|
|
||||||
"data"
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
|
|
@ -143,6 +144,9 @@
|
||||||
((variable) @variable.builtin
|
((variable) @variable.builtin
|
||||||
(#lua-match? @variable.builtin "^\$env:"))
|
(#lua-match? @variable.builtin "^\$env:"))
|
||||||
|
|
||||||
|
(data_name
|
||||||
|
(simple_name) @constant)
|
||||||
|
|
||||||
(comment) @comment @spell
|
(comment) @comment @spell
|
||||||
|
|
||||||
((program
|
((program
|
||||||
|
|
|
||||||
|
|
@ -68,6 +68,10 @@
|
||||||
(unary_expression
|
(unary_expression
|
||||||
(variable) @local.definition.var))))))))))))))
|
(variable) @local.definition.var))))))))))))))
|
||||||
|
|
||||||
|
; data sections
|
||||||
|
(data_name
|
||||||
|
(simple_name) @local.definition.var)
|
||||||
|
|
||||||
; References
|
; References
|
||||||
;-----------
|
;-----------
|
||||||
(variable) @local.reference
|
(variable) @local.reference
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue