1
0
This commit is contained in:
Jose
2024-03-06 16:58:06 +01:00
commit 745e9ea1c9
10 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
{
"brackets": [
["[", "]"],
["(", ")"]
],
"autoClosingPairs": [
{"open": "[", "close": "]"},
{"open": "(", "close": ")"}
],
"surroundingPairs": [
{"open": "[", "close": "]"},
{"open": "(", "close": ")"},
{"open": "\"", "close": "\""},
{"open": "'", "close": "'"}
],
"wordPattern": "[a-zA-Z_]+",
"tokenizer": {
"root": [
["[a-zA-Z_]+", {
"cases": {
"@comments": "comment",
"@default": "identifier"
}
}],
["\\b(Integer|Double|Float)\\b", "type.identifier"],
["[0-9]+", "number"],
["\\[", "bracket.square.open"],
["\\]", "bracket.square.close"],
["\\(", "bracket.parenthesis.open"],
["\\)", "bracket.parenthesis.close"],
["\\{", "bracket.curly.open"],
["\\}", "bracket.curly.close"],
["[\\+\\-\\*\\/\\.=\\=\\<=\\>=]", "keyword.operator"], // Incluidos operadores
["\\b(min|max|sum|in)\\b", "keyword"],
["\\b([a-z][A-Za-z0-9_]*)\\b", "variable.other.local"],
["\\.\\s*([a-z][A-Za-z0-9_]*)", "method"]
]
}
}