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

118 lines
3.3 KiB
JSON

{
"simpleTerms": {
"constant": "type",
"class_variable": "variable",
"instance_variable": "variable",
"string": "string",
"bare_string": "string",
"subshell": "string",
"heredoc_beginning": "string",
"heredoc_body": "string",
"regex": "string",
"escape_sequence": "string",
"symbol": "string",
"bare_symbol": "string",
"interpolation": "string",
"float": "number",
"integer": "number",
"complex": "number",
"rational": "number",
"comment": "comment",
"nil": "constant",
"true": "constant",
"false": "constant",
"\"if\"": "control",
"\"unless\"": "control",
"\"def\"": "control",
"\"do\"": "control",
"\"end\"": "control",
"\"else\"": "control",
"\"elsif\"": "control",
"\"class\"": "control",
"\"module\"": "control",
"\"alias\"": "control",
"\"begin\"": "control",
"\"rescue\"": "control",
"\"ensure\"": "control",
"\"return\"": "control",
"\"yield\"": "control",
"\"case\"": "control",
"\"when\"": "control",
"\"then\"": "control",
"\"for\"": "control",
"\"break\"": "control",
"\"next\"": "control",
"\"retry\"": "control",
"\"while\"": "control",
"\"in\"": "control",
"\"until\"": "control",
"self": "control",
"super": "control",
"\"and\"": "operator",
"\"or\"": "operator",
"\"not\"": "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",
"\"defined?\"": "operator",
"\",\"": "punctuation",
"\"%w(\"": "punctuation",
"\"%i(\"": "punctuation",
"\"(\"": "punctuation",
"\")\"": "punctuation",
"\"{\"": "punctuation",
"\"}\"": "punctuation",
"\"#{\"": "punctuation"
},
"complexTerms": ["identifier"],
"complexScopes": {
"identifier": "variable",
"block_parameters > identifier": "variable",
"keyword_parameter > identifier": "constant",
"method > identifier": "function",
"setter > identifier": "function",
"call > identifier": "function",
"method_call > identifier": "function",
"singleton_method > identifier": "function",
"method_parameters > identifier": "function"
},
}