feat(powershell): added data section name highlights

This commit is contained in:
Andrey Chalkin 2024-08-01 08:40:44 +02:00 committed by GitHub
parent 929e4739cc
commit fcf79acfd1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 11 additions and 3 deletions

View file

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

View file

@ -68,6 +68,10 @@
(unary_expression
(variable) @local.definition.var))))))))))))))
; data sections
(data_name
(simple_name) @local.definition.var)
; References
;-----------
(variable) @local.reference