zenstack/packages/schema/syntaxes/zmodel.tmLanguage.json
Yiming e2d62fc421
merge canary to dev (#181)
Co-authored-by: JS <jiashengguo@outlook.com>
2023-01-27 22:31:44 +08:00

55 lines
1.6 KiB
JSON

{
"name": "zmodel",
"scopeName": "source.zmodel",
"fileTypes": [".zmodel"],
"patterns": [
{
"include": "#comments"
},
{
"name": "keyword.control.zmodel",
"match": "\\b(Any|Asc|attribute|BigInt|Boolean|Bytes|ContextType|datasource|DateTime|Decimal|Desc|enum|FieldReference|Float|function|generator|Int|Json|model|Null|plugin|sort|String)\\b"
},
{
"name": "string.quoted.double.zmodel",
"begin": "\"",
"end": "\""
},
{
"name": "string.quoted.single.zmodel",
"begin": "'",
"end": "'"
}
],
"repository": {
"comments": {
"patterns": [
{
"name": "comment.block.zmodel",
"begin": "/\\*",
"beginCaptures": {
"0": {
"name": "punctuation.definition.comment.zmodel"
}
},
"end": "\\*/",
"endCaptures": {
"0": {
"name": "punctuation.definition.comment.zmodel"
}
}
},
{
"begin": "//",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.comment.leading.zmodel"
}
},
"end": "(?=$)",
"name": "comment.line.zmodel"
}
]
}
}
}