🐐 VS Code extension
This commit is contained in:
@@ -8,12 +8,18 @@
|
|||||||
{
|
{
|
||||||
"include": "#strings"
|
"include": "#strings"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"include": "#fractions"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"include": "#keywords"
|
"include": "#keywords"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"include": "#builtins"
|
"include": "#builtins"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"include": "#modules"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"include": "#constants"
|
"include": "#constants"
|
||||||
},
|
},
|
||||||
@@ -39,15 +45,19 @@
|
|||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"name": "keyword.control.cent",
|
"name": "keyword.control.cent",
|
||||||
"match": "\\b(ALVID|AVT|DEFINI|DESIGNA|DONICVM|DVM|ERVMPE|ET|FACE|INVOCA|IN|PER|SI|TVNC|VSQVE|VT|CVM)\\b"
|
"match": "\\b(AETERNVM|ALVID|AVT|CONTINVA|CVM|DEFINI|DESIGNA|DONICVM|DVM|ERVMPE|ET|FACE|IN|INVOCA|NON|PER|REDI|SI|TVNC|VSQVE|VT)\\b"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "keyword.operator.comparison.cent",
|
"name": "keyword.operator.comparison.cent",
|
||||||
"match": "\\b(EST|MINVS|PLVS)\\b"
|
"match": "\\b(DISPAR|EST|MINVS|PLVS)\\b"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "keyword.operator.arithmetic.cent",
|
"name": "keyword.operator.arithmetic.cent",
|
||||||
"match": "(\\*|\\+|-|/)"
|
"match": "\\b(RELIQVVM)\\b"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "keyword.operator.arithmetic.cent",
|
||||||
|
"match": "(\\*|\\+|-|/|&)"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -55,7 +65,15 @@
|
|||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"name": "support.function.builtin.cent",
|
"name": "support.function.builtin.cent",
|
||||||
"match": "\\b(AVDI_NVMERVS|AVDI|DICE|FORTIS_NVMERVS|FORTIS_ELECTIONIS|LONGITVDO|REDI)\\b"
|
"match": "\\b(AVDI_NVMERVS|AVDI|DICE|EVERRO|FORTIS_NVMERVS|FORTIS_ELECTIONIS|LONGITVDO)\\b"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"modules": {
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"name": "support.class.module.cent",
|
||||||
|
"match": "\\b(FORS|FRACTIO|MAGNVM|SVBNVLLA)\\b"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -63,7 +81,7 @@
|
|||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
"name": "constant.numeric.roman.cent",
|
"name": "constant.numeric.roman.cent",
|
||||||
"match": "\\b[IVXLCDM]+\\b"
|
"match": "\\b[IVXLCDM][IVXLCDM_]*\\b"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "constant.language.roman.cent",
|
"name": "constant.language.roman.cent",
|
||||||
@@ -75,6 +93,18 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"fractions": {
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"name": "constant.numeric.fraction.cent",
|
||||||
|
"match": "\\b[IVXLCDM][IVXLCDM_]*(?:S[S:.|]*|:[S:.|]+|\\.[S:.|]*)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "constant.numeric.fraction.cent",
|
||||||
|
"match": "(?<![IVXLCDM_])(?:S[S:.|]+|:[S:.|]+)"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
"strings": {
|
"strings": {
|
||||||
"patterns": [
|
"patterns": [
|
||||||
{
|
{
|
||||||
@@ -111,4 +141,4 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scopeName": "source.cent"
|
"scopeName": "source.cent"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user