parsers: add tree-sitter-slang

This commit is contained in:
Stephan Seitz 2023-11-18 20:52:31 +01:00
parent b04f990f92
commit 10432e6b0f
8 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,42 @@
; inherits: hlsl
[
"var"
"let"
"This"
] @type.builtin
[
"interface"
"extension"
"property"
] @keyword
[
"__init"
] @constructor
[
"__subscript"
"get"
"set"
] @function.builtin
(interface_requirements (identifier) @type)
(binary_expression
["is" "as"]
right: (identifier) @type)
[
"as"
"is"
] @keyword.operator
[
"__exported"
"import"
] @include
(property_declaration
(identifier) @property)