Добавление новых сниппетов

This commit is contained in:
2025-08-21 02:29:09 +03:00
parent 624f783ff3
commit 64564df5c0
3 changed files with 366 additions and 8 deletions

View File

@@ -48,9 +48,74 @@
},
{
"include": "#comments"
}
},
{ "include": "#mathFunctions" },
{ "include": "#branchCodes" }
],
"repository": {
"branchCodes": {
"patterns": [
{
"begin": "\\((BNC|BGT|BLT|BEQ|BNE|BGE|BLE)",
"beginCaptures": {
"1": { "name": "keyword.control.branch.bsnc" }
},
"end": "\\)",
"endCaptures": {
"0": { "name": "punctuation.section.parens.end.bsnc" }
},
"patterns": [
{ "match": ",", "name": "punctuation.separator.comma.bsnc" },
{ "match": "(E\\d+)", "name": "variable.other.e-variable.bsnc" },
{ "match": "[A-Z_][A-Z0-9_]*", "name": "entity.name.label.bsnc" },
{ "match": "[-+]?\\d+(?:\\.\\d+)?", "name": "constant.numeric.branch-arg.bsnc" }
]
}
]
},
"mathFunctions": {
"patterns": [
{
"begin": "\\b(SIN|COS|TAN|ARS|ARC|ART|SQR|ABS|INT|NEG|MOD|FEL)\\s*\\(",
"beginCaptures": {
"1": {
"name": "support.function.math.bsnc"
},
"0": {
"name": "punctuation.section.parens.begin.bsnc"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "punctuation.section.parens.end.bsnc"
}
},
"patterns": [
{
"match": ",",
"name": "punctuation.separator.comma.bsnc"
},
{
"match": "/",
"name": "keyword.operator.divide.bsnc"
},
{
"match": "(E\\d+)",
"name": "variable.other.e-variable.bsnc"
},
{
"match": "[-+]?\\d+(?:\\.\\d+)?",
"name": "constant.numeric.math-arg.bsnc"
},
{
"match": "[A-Z]",
"name": "variable.parameter.math-symbol.bsnc"
}
]
}
]
},
"lineComments": {
"patterns": [
{