blob: c8db11e18472bdb261f877e2071bca42db0593bb (
plain)
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
|
(function_declaration name: (identifier) @function)
(method_definition name: (property_identifier) @function)
(call_expression function: (identifier) @function)
(call_expression function: (member_expression property: (property_identifier) @function))
(type_identifier) @type
(predefined_type) @type
(string) @string
(number) @number
(comment) @comment
(regex) @string
(template_string) @string
(true) @boolean
(false) @boolean
(null) @null
(property_signature name: (property_identifier) @property)
(public_field_definition name: (property_identifier) @property)
[
"function"
"return"
"if"
"else"
"for"
"while"
"do"
"switch"
"case"
"default"
"break"
"continue"
"var"
"let"
"const"
"try"
"catch"
"finally"
"class"
"extends"
"implements"
"import"
"export"
"from"
"async"
"await"
"new"
"interface"
"type"
"enum"
"public"
"private"
"protected"
"readonly"
"declare"
"module"
"namespace"
"abstract"
"as"
"keyof"
"typeof"
"instanceof"
"void"
"debugger"
"yield"
] @keyword
(this) @keyword
(super) @keyword
|