summaryrefslogtreecommitdiffstats
path: root/queries/slang/highlights.scm
blob: 6fd5f45eace53f9f96850dad4d41a6888ee4a304 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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)