mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -04:00
parsers: add tree-sitter-slang
This commit is contained in:
parent
b04f990f92
commit
10432e6b0f
8 changed files with 78 additions and 0 deletions
42
queries/slang/highlights.scm
Normal file
42
queries/slang/highlights.scm
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue