137 lines
4.0 KiB
JSON
137 lines
4.0 KiB
JSON
{
|
|
"simpleTerms": {
|
|
"shorthand_property_identifier": "variable",
|
|
|
|
"\"var\"": "modifier",
|
|
"\"let\"": "modifier",
|
|
"\"extends\"": "modifier",
|
|
"\"const\"": "modifier",
|
|
"\"static\"": "modifier",
|
|
|
|
"number": "number",
|
|
"string": "string",
|
|
"escape_sequence": "string",
|
|
"template_string": "string",
|
|
"regex": "string",
|
|
"comment": "comment",
|
|
"hash_bang_line": "comment",
|
|
|
|
"true": "constant",
|
|
"false": "constant",
|
|
"null": "constant",
|
|
"undefined": "constant",
|
|
|
|
"\"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",
|
|
"\"delete\"": "control",
|
|
|
|
"this": "operator",
|
|
"\"class\"": "operator",
|
|
"\"function\"": "operator",
|
|
|
|
"\"in\"": "operator",
|
|
"\"instanceof\"": "operator",
|
|
"\"of\"": "operator",
|
|
"\"new\"": "operator",
|
|
"\"typeof\"": "operator",
|
|
"\"get\"": "operator",
|
|
"\"set\"": "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",
|
|
"\"...\"": "operator",
|
|
|
|
"\"(\"": "punctuation",
|
|
"\")\"": "punctuation",
|
|
"\"{\"": "punctuation",
|
|
"\"}\"": "punctuation",
|
|
"\";\"": "punctuation",
|
|
"\"[\"": "punctuation",
|
|
"\"]\"": "punctuation",
|
|
"\".\"": "punctuation",
|
|
"\",\"": "punctuation",
|
|
"\"${\"": "punctuation"
|
|
},
|
|
|
|
"complexTerms": ["identifier", "field_identifier", "property_identifier", "super"],
|
|
|
|
"complexScopes": {
|
|
"identifier": "variable",
|
|
"property_identifier": "variable",
|
|
"formal_parameters > identifier": "variable",
|
|
"jsx_attribute > property_identifier": "variable",
|
|
|
|
"class > identifier": "type",
|
|
"new_expression > identifier": "type",
|
|
"jsx_opening_element > identifier": "type",
|
|
"jsx_closing_element > identifier": "type",
|
|
"jsx_self_closing_element > identifier": "type",
|
|
|
|
"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"
|
|
}
|
|
}
|