Coloring of markers

This commit is contained in:
Dag Evensberget 2019-11-27 00:15:38 +10:00
parent 784521027b
commit 4f08ea86c3

View File

@ -3,17 +3,50 @@
"name": "SWMF Config", "name": "SWMF Config",
"patterns": [ "patterns": [
{ {
"include": "#keywords" "include": "#marker"
},
{
"include": "#run_end"
},
{
"include": "#command"
}, },
{ {
"include": "#strings" "include": "#strings"
} }
], ],
"repository": { "repository": {
"keywords": { "command": {
"patterns": [{ "patterns": [{
"name": "keyword.control.swmf", "match": "^(#[a-zA-Z0-9_]+)(\\s.*)?\n"
"match": "\\b(if|while|for|return)\\b" ,
"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": { "strings": {