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

View file

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