Files
mixly3-server/mixly/common/templates/json/tree-sitter/grammars/lua.json
2026-01-24 16:12:04 +08:00

88 lines
2.3 KiB
JSON

{
"simpleTerms": {
"method": "function",
"\"local\"": "modifier",
"\"function\"": "modifier",
"number": "number",
"string": "string",
"comment": "comment",
"true": "constant",
"false": "constant",
"nil": "constant",
"global_variable": "constant",
"\"while\"": "control",
"\"do\"": "control",
"\"until\"": "control",
"\"break\"": "control",
"\"for\"": "control",
"\"if\"": "control",
"\"else\"": "control",
"\"elseif\"": "control",
"\"then\"": "control",
"\"end\"": "control",
"\"goto\"": "control",
"\"repeat\"": "control",
"\"return\"": "control",
"self": "operator",
"\"and\"": "operator",
"\"or\"": "operator",
"\"not\"": "operator",
"\"in\"": "operator",
"\"next\"": "operator",
"\"spread\"": "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", "property_identifier"],
"complexScopes": {
"identifier": "variable",
"property_identifier": "variable",
"function_call > identifier": "function",
"function_call > property_identifier": "function",
"function_name > identifier": "function",
"function_name > property_identifier": "function",
"local_function > identifier": "function"
}
}