-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathtypescriptreact.json
More file actions
162 lines (146 loc) · 5.02 KB
/
typescriptreact.json
File metadata and controls
162 lines (146 loc) · 5.02 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"simpleTerms": {
"type_identifier": "type",
"predefined_type": "type",
"namespace": "scope",
"\"module\"": "scope",
"shorthand_property_identifier": "variable",
"\"var\"": "modifier",
"\"let\"": "modifier",
"\"extends\"": "modifier",
"\"const\"": "modifier",
"\"static\"": "modifier",
"\"public\"": "modifier",
"\"private\"": "modifier",
"\"protected\"": "modifier",
"\"readonly\"": "modifier",
"\"namespace\"": "modifier",
"\"module\"": "modifier",
"this": "modifier",
"\"class\"": "modifier",
"\"enum\"": "modifier",
"\"function\"": "modifier",
"\"interface\"": "modifier",
"\"implements\"": "modifier",
"\"declare\"": "modifier",
"\"in\"": "modifier",
"\"instanceof\"": "modifier",
"\"of\"": "modifier",
"\"new\"": "modifier",
"\"delete\"": "modifier",
"\"typeof\"": "modifier",
"\"get\"": "modifier",
"\"set\"": "modifier",
"number": "number",
"string": "string",
"escape_sequence": "string",
"template_string": "string",
"template_substitution": "string",
"regex": "string",
"comment": "comment",
"hash_bang_line": "comment",
"true": "constant.langauge",
"false": "constant.langauge",
"null": "constant.langauge",
"undefined": "constant.langauge",
"\"as\"": "control",
"\"if\"": "control",
"\"do\"": "control",
"\"else\"": "control",
"\"while\"": "control",
"\"for\"": "control",
"\"return\"": "control",
"\"break\"": "control",
"\"continue\"": "control",
"\"throw\"": "control",
"\"try\"": "control",
"\"catch\"": "control",
"\"finally\"": "control",
"\"switch\"": "control",
"\"case\"": "control",
"\"default\"": "control",
"\"export\"": "control",
"\"import\"": "control",
"\"from\"": "control",
"\"yield\"": "control",
"\"async\"": "control",
"\"await\"": "control",
"\"debugger\"": "control",
"\"=\"": "operator",
"\"+=\"": "operator",
"\"-=\"": "operator",
"\"*=\"": "operator",
"\"/=\"": "operator",
"\"%=\"": "operator",
"\"<<=\"": "operator",
"\">>=\"": "operator",
"\">>>=\"": "operator",
"\"&=\"": "operator",
"\"^=\"": "operator",
"\"|=\"": "operator",
"\"!\"": "operator",
"\"+\"": "operator",
"\"-\"": "operator",
"\"*\"": "operator",
"\"/\"": "operator",
"\"%\"": "operator",
"\"==\"": "operator",
"\"===\"": "operator",
"\"!=\"": "operator",
"\"!==\"": "operator",
"\">=\"": "operator",
"\"<=\"": "operator",
"\"=>\"": "operator",
"\">\"": "operator",
"\"<\"": "operator",
"\":\"": "operator",
"\"?\"": "operator",
"\"&&\"": "operator",
"\"||\"": "operator",
"\"&\"": "operator",
"\"~\"": "operator",
"\"^\"": "operator",
"\">>\"": "operator",
"\">>>\"": "operator",
"\"<<\"": "operator",
"\"|\"": "operator",
"\"++\"": "operator",
"\"--\"": "operator",
"\"...\"": "operator",
"\"(\"": "punctuation",
"\")\"": "punctuation",
"\"{\"": "punctuation",
"\"}\"": "punctuation",
"\";\"": "punctuation",
"\"[\"": "punctuation",
"\"]\"": "punctuation",
"\".\"": "punctuation",
"\",\"": "punctuation",
"\"${\"": "punctuation"
},
"complexTerms": ["identifier", "property_identifier", "super", "\"type\""],
"complexScopes": {
"class_declaration > identifier": "type",
"new_expression > identifier": "type",
"jsx_opening_element > identifier": "type",
"jsx_closing_element > identifier": "type",
"jsx_opening_element > nested_identifier > identifier": "type",
"jsx_closing_element > nested_identifier > identifier": "type",
"jsx_self_closing_element > identifier": "type",
"nested_type_identifier > identifier": "scope",
"identifier": "variable",
"property_identifier": "variable",
"member_expression > property_identifier": "variable",
"jsx_attribute > property_identifier": "variable",
"call_expression > identifier": "function",
"call_expression > super": "function",
"function > identifier": "function",
"generator_function > identifier": "function",
"method_definition > property_identifier": "function",
"call_expression > member_expression > property_identifier": "function",
"method_signature > property_identifier": "function",
"function_declaration > identifier": "function",
"import_statement > \"type\"": "control",
"type_alias_declaration > \"type\"": "modifier"
}
}