feat: sync mixly root files and common folder
This commit is contained in:
108
mixly/common/templates/json/tree-sitter/grammars/go.json
Normal file
108
mixly/common/templates/json/tree-sitter/grammars/go.json
Normal file
@@ -0,0 +1,108 @@
|
||||
{
|
||||
"simpleTerms": {
|
||||
"type_identifier": "type",
|
||||
"package_identifier": "scope",
|
||||
|
||||
"\"var\"": "modifier",
|
||||
"\"const\"": "modifier",
|
||||
|
||||
"interpreted_string_literal": "string",
|
||||
"raw_string_literal": "string",
|
||||
"escape_sequence": "string",
|
||||
"rune_literal": "number",
|
||||
"int_literal": "number",
|
||||
"float_literal": "number",
|
||||
"imaginary_literal": "number",
|
||||
"comment": "comment",
|
||||
|
||||
"nil": "constant",
|
||||
"false": "constant",
|
||||
"true": "constant",
|
||||
|
||||
"\"if\"": "control",
|
||||
"\"for\"": "control",
|
||||
"\"else\"": "control",
|
||||
"\"case\"": "control",
|
||||
"\"break\"": "control",
|
||||
"\"switch\"": "control",
|
||||
"\"select\"": "control",
|
||||
"\"return\"": "control",
|
||||
"\"default\"": "control",
|
||||
"\"continue\"": "control",
|
||||
"\"goto\"": "control",
|
||||
"\"fallthrough\"": "control",
|
||||
"\"defer\"": "control",
|
||||
"\"range\"": "control",
|
||||
"\"go\"": "control",
|
||||
|
||||
"\"type\"": "operator",
|
||||
"\"struct\"": "operator",
|
||||
"\"import\"": "operator",
|
||||
"\"package\"": "operator",
|
||||
"\"func\"": "operator",
|
||||
"\"interface\"": "operator",
|
||||
"\"map\"": "operator",
|
||||
"\"chan\"": "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"
|
||||
},
|
||||
|
||||
"complexTerms": ["identifier", "field_identifier"],
|
||||
|
||||
"complexScopes": {
|
||||
"identifier": "variable",
|
||||
"field_identifier": "variable",
|
||||
|
||||
"call_expression > identifier": "function",
|
||||
"function_declaration > identifier": "function",
|
||||
"method_declaration > field_identifier": "function",
|
||||
"call_expression > selector_expression > field_identifier": "function"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user