2019-11-26 14:02:14 +01:00
|
|
|
{
|
|
|
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
|
|
"name": "SWMF Config",
|
|
|
|
"patterns": [
|
|
|
|
{
|
2019-11-26 15:15:38 +01:00
|
|
|
"include": "#marker"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#run_end"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#command"
|
2019-11-26 14:02:14 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"include": "#strings"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"repository": {
|
2019-11-26 15:15:38 +01:00
|
|
|
"command": {
|
2019-11-26 14:02:14 +01:00
|
|
|
"patterns": [{
|
2019-11-26 15:15:38 +01:00
|
|
|
"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"}
|
|
|
|
}
|
2019-11-26 14:02:14 +01:00
|
|
|
}]
|
|
|
|
},
|
|
|
|
"strings": {
|
|
|
|
"name": "string.quoted.double.swmf",
|
|
|
|
"begin": "\"",
|
|
|
|
"end": "\"",
|
|
|
|
"patterns": [
|
|
|
|
{
|
|
|
|
"name": "constant.character.escape.swmf",
|
|
|
|
"match": "\\\\."
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"scopeName": "source.swmf"
|
|
|
|
}
|