124 lines
3.5 KiB
JSON
124 lines
3.5 KiB
JSON
{
|
|
"simpleTerms": {
|
|
"type_identifier": "type",
|
|
"primitive_type": "type",
|
|
"\"signed\"": "type",
|
|
"\"unsigned\"": "type",
|
|
"\"short\"": "type",
|
|
"\"long\"": "type",
|
|
|
|
"statement_identifier": "variable",
|
|
|
|
"\"const\"": "modifier",
|
|
"\"static\"": "modifier",
|
|
"\"auto\"": "modifier",
|
|
"\"extern\"": "modifier",
|
|
"\"inline\"": "modifier",
|
|
"\"register\"": "modifier",
|
|
"\"volatile\"": "modifier",
|
|
"\"restrict\"": "modifier",
|
|
"\"_Atomic\"": "modifier",
|
|
"\"__attribute__\"": "modifier",
|
|
"function_specifier": "modifier",
|
|
|
|
"number_literal": "number",
|
|
"char_literal": "string",
|
|
"string_literal": "string",
|
|
"system_lib_string": "string",
|
|
"escape_sequence": "string",
|
|
"comment": "comment",
|
|
|
|
"null": "constant",
|
|
"true": "constant",
|
|
"false": "constant",
|
|
|
|
"\"if\"": "control",
|
|
"\"else\"": "control",
|
|
"\"do\"": "control",
|
|
"\"for\"": "control",
|
|
"\"while\"": "control",
|
|
"\"break\"": "control",
|
|
"\"continue\"": "control",
|
|
"\"return\"": "control",
|
|
"\"switch\"": "control",
|
|
"\"case\"": "control",
|
|
"\"default\"": "control",
|
|
"\"goto\"": "control",
|
|
"\"struct\"": "control",
|
|
"\"enum\"": "control",
|
|
"\"union\"": "control",
|
|
"\"typedef\"": "control",
|
|
|
|
"\"sizeof\"": "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",
|
|
|
|
"\"#if\"": "directive",
|
|
"\"#ifdef\"": "directive",
|
|
"\"#ifndef\"": "directive",
|
|
"\"#elif\"": "directive",
|
|
"\"#else\"": "directive",
|
|
"\"#endif\"": "directive",
|
|
"\"#define\"": "directive",
|
|
"\"#include\"": "directive",
|
|
"preproc_directive": "directive",
|
|
"preproc_arg": "directive",
|
|
|
|
"\";\"": "punctuation",
|
|
"\"[\"": "punctuation",
|
|
"\"]\"": "punctuation",
|
|
"\",\"": "punctuation",
|
|
"\"{\"": "punctuation",
|
|
"\"}\"": "punctuation",
|
|
"\"(\"": "punctuation",
|
|
"\")\"": "punctuation"
|
|
},
|
|
|
|
"complexTerms": ["identifier", "field_identifier"],
|
|
|
|
"complexScopes": {
|
|
"identifier": "variable",
|
|
"field_identifier": "variable",
|
|
|
|
"call_expression > identifier" : "function",
|
|
"call_expression > field_expression > field_identifier" : "function",
|
|
"function_declarator > identifier" : "function"
|
|
}
|
|
|
|
}
|