haldis/etc/vscode/syntaxes/hlds.tmLanguage.json

93 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2020-02-24 20:47:21 +01:00
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "HLDS",
"patterns": [
{
"include": "#tags"
},
{
"include": "#keywords"
},
{
"include": "#header"
},
{
"include": "#prices"
},
{
"include": "#indent"
},
{
"include": "#random"
}
],
"repository": {
"random": {
"patterns": [
{
"match": "#.*$",
"name": "markup.bold"
}
]
},
"tags": {
"patterns": [
{
"match": " +( +{[a-zA-Z-_]*})*",
"name": "markup.italic"
2020-02-24 20:47:21 +01:00
}
]
},
"indent": {
"patterns": [
{
"name": "variable.other",
"match": "\\t[-_a-zA-Z0-9]*:"
},
{
"name": "entity.name.type",
"match": "[-_a-zA-Z0-9]*:"
}
]
},
"prices": {
"patterns": [
{
"name": "entity.name.class",
"match": "€\\s*[0-9.]*$"
}
]
},
"header": {
"patterns": [
{
"name": "embedded.meta.tag",
"begin": "^==",
"end": "==$"
}
]
},
"comments": {
"patterns": [
{
"name": "comment",
"match": "--[^€]*"
}
]
},
"keywords": {
"patterns": [
{
"name": "keyword.control.hlds",
"match": "\\bdish\\b"
},
{
"name": "keyword",
"match": "\\b(single_choice|multi_choice)\\b"
}
]
}
},
"scopeName": "source.hlds"
}