vue2-grammar/syntaxes/swmf.tmLanguage.json
2019-11-27 00:15:38 +10:00

65 lines
1.1 KiB
JSON

{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "SWMF Config",
"patterns": [
{
"include": "#marker"
},
{
"include": "#run_end"
},
{
"include": "#command"
},
{
"include": "#strings"
}
],
"repository": {
"command": {
"patterns": [{
"match": "^(#[a-zA-Z0-9_]+)(\\s.*)?\n"
,
"captures":
{
"1" : {"name" : "support.function.swmf" },
"2" : {"name" : "comment.swmf"}
}
}]
},
"marker": {
"patterns": [{
"match": "^(#(?:BEGIN|END)_COMP) ([A-Z][A-Z])(\\s.*)?\n",
"captures":
{
"1" : {"name" : "support.function.swmf"},
"2" : {"name" : "string.swmf"},
"3" : {"name" : "comment.swmf"}
}
}]
},
"run_end": {
"patterns":
[{
"match": "(^#(?:RUN|END))(\\s.*)?\n",
"captures":
{
"1" : {"name" : "keyword.swmf" },
"2" : {"name" : "comment.swmf"}
}
}]
},
"strings": {
"name": "string.quoted.double.swmf",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.swmf",
"match": "\\\\."
}
]
}
},
"scopeName": "source.swmf"
}