{ "$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" }