✨
This commit is contained in:
83
vscode-extension/syntaxes/cent.tmLanguage.json
Normal file
83
vscode-extension/syntaxes/cent.tmLanguage.json
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "CENTVRION",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#builtins"
|
||||
},
|
||||
{
|
||||
"include": "#constants"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.control.cent",
|
||||
"match": "\\b(ALVID|DEFINI|DESIGNA|DONICVM|DVM|ERVMPE|FACE|INVOCA|IN|PER|SI|TVNC|VSQVE|VT|CVM)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.comparison.cent",
|
||||
"match": "\\b(EST|MINVS|PLVS)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.cent",
|
||||
"match": "(\\*|\\+|-|/)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"builtins": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "support.function.builtin.cent",
|
||||
"match": "\\b(AVDI_NVMERVS|AVDI|DICE|FORTIS_NVMERVS|FORTIS_ELECTIONIS|LONGITVDO|REDI)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"constants": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.roman.cent",
|
||||
"match": "\\b[IVXLCDM]+\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.language.roman.cent",
|
||||
"match": "\\b(VERITAS|FALSITAS)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.nullus.cent",
|
||||
"match": "\\bNVLLVS\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"name": "string.quoted.double.cent",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.cent",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
},
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "variable.language.cent",
|
||||
"match": "\\b[abcdefghiklmnopqrstvxyz_]+\\b"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.cent"
|
||||
}
|
||||
Reference in New Issue
Block a user