blob: e33829b8113407ec1583c3265181e12b14caccb1 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
(identifier) @variable
(reference_identifier) @variable
(member_identifier) @variable.member
; Classes
(custom_type) @type
(class_field
name: (identifier) @variable.member)
(class_definition
name: (identifier) @type)
(method_definition
name: (identifier) @function.method)
; Functions
(keyword_argument_key) @variable.parameter
(call
caller: (reference
(nested_identifier
property: (member_identifier) @function.method.call)))
(call
caller: (reference
(reference_identifier) @function.method.call))
; Primitives
(number) @number
(duration) @constant
(string) @string
(bool) @boolean
(builtin_type) @type.builtin
(json_container_type) @type.builtin
; Special
(comment) @comment @spell
[
"("
")"
"{"
"}"
] @punctuation.bracket
[
"-"
"+"
"*"
"/"
"%"
"<"
"<="
"="
"=="
"!"
"!="
">"
">="
"&&"
"??"
"||"
] @operator
[
";"
"."
","
] @punctuation.delimiter
[
"as"
"bring"
"class"
"let"
"new"
(inflight_specifier)
] @keyword
[
"for"
"in"
] @keyword.repeat
[
"if"
"else"
] @keyword.conditional
"return" @keyword.return
|