1(function_declaration name: (identifier) @function)
2(method_definition name: (property_identifier) @function)
3(call_expression function: (identifier) @function)
4(call_expression function: (member_expression property: (property_identifier) @function))
5
6(type_identifier) @type
7(predefined_type) @type
8
9(string) @string
10(number) @number
11(comment) @comment
12(regex) @string
13(template_string) @string
14
15(true) @boolean
16(false) @boolean
17(null) @null
18
19(property_signature name: (property_identifier) @property)
20(public_field_definition name: (property_identifier) @property)
21
22[
23 "function"
24 "return"
25 "if"
26 "else"
27 "for"
28 "while"
29 "do"
30 "switch"
31 "case"
32 "default"
33 "break"
34 "continue"
35 "var"
36 "let"
37 "const"
38 "try"
39 "catch"
40 "finally"
41 "class"
42 "extends"
43 "implements"
44 "import"
45 "export"
46 "from"
47 "async"
48 "await"
49 "new"
50 "interface"
51 "type"
52 "enum"
53 "public"
54 "private"
55 "protected"
56 "readonly"
57 "declare"
58 "module"
59 "namespace"
60 "abstract"
61 "as"
62 "keyof"
63 "typeof"
64 "instanceof"
65 "void"
66 "debugger"
67 "yield"
68] @keyword
69
70(this) @keyword
71(super) @keyword
72
73(jsx_opening_element name: (_) @function)
74(jsx_closing_element name: (_) @function)
75(jsx_self_closing_element name: (_) @function)
76(jsx_attribute (property_identifier) @property)