mirror of
https://github.com/nvim-treesitter/nvim-treesitter
synced 2024-09-16 14:34:05 +02: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"
|
||||
] @keyword.type
|
||||
|
||||
(class_attribute) @keyword.modifier
|
||||
[
|
||||
"data"
|
||||
(class_attribute)
|
||||
] @keyword.modifier
|
||||
|
||||
[
|
||||
"throw"
|
||||
|
@ -87,8 +90,6 @@
|
|||
"begin"
|
||||
"process"
|
||||
"end"
|
||||
; TODO: not supported by parser yet, can be used to declare constants
|
||||
"data"
|
||||
] @keyword
|
||||
|
||||
; Operators
|
||||
|
@ -143,6 +144,9 @@
|
|||
((variable) @variable.builtin
|
||||
(#lua-match? @variable.builtin "^\$env:"))
|
||||
|
||||
(data_name
|
||||
(simple_name) @constant)
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
((program
|
||||
|
|
|
@ -68,6 +68,10 @@
|
|||
(unary_expression
|
||||
(variable) @local.definition.var))))))))))))))
|
||||
|
||||
; data sections
|
||||
(data_name
|
||||
(simple_name) @local.definition.var)
|
||||
|
||||
; References
|
||||
;-----------
|
||||
(variable) @local.reference
|
||||
|
|
Loading…
Reference in a new issue