89 lines
1.4 KiB
JSON
89 lines
1.4 KiB
JSON
{
|
|
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
|
"name": "kurz",
|
|
"patterns":
|
|
[
|
|
{
|
|
"include": "#keywords"
|
|
},
|
|
{
|
|
"include": "#strings"
|
|
},
|
|
{
|
|
"include": "#comment"
|
|
}
|
|
],
|
|
"repository":
|
|
{
|
|
"keywords":
|
|
{
|
|
"patterns":
|
|
[
|
|
{
|
|
"name": "keyword.control.kurz",
|
|
"match": "\\b(if|else|while)\\b"
|
|
},
|
|
{
|
|
"name": "keyword.operator",
|
|
"match": "[-+<>]|==|!=|=>|print(ln)?"
|
|
},
|
|
{
|
|
"name": "support.function.kurz",
|
|
"match": "function"
|
|
},
|
|
{
|
|
"name": "support.type.kurz",
|
|
"match": "\\b(bool|int|str)\\b"
|
|
},
|
|
{
|
|
"name": "constant.numeric.kurz",
|
|
"match": "[0-9]"
|
|
},
|
|
{
|
|
"name": "constant.language.kurz",
|
|
"match": "true|false"
|
|
},
|
|
{
|
|
"name": "support.function.kurz",
|
|
"match": "\\b(deq|swp|dup|req|depth|decrease)\\b"
|
|
},
|
|
{
|
|
"name": "keyword.control",
|
|
"match": "arr"
|
|
}
|
|
]
|
|
},
|
|
"comment":
|
|
{
|
|
"patterns":
|
|
[
|
|
{
|
|
"name": "comment.line.kurz",
|
|
"begin": "//",
|
|
"end": "$",
|
|
"patterns":
|
|
[
|
|
{
|
|
"name": "markup.bold.kurz",
|
|
"match": "(TODO|FIXME):?"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"strings":
|
|
{
|
|
"name": "string.quoted.double.kurz",
|
|
"begin": "\"",
|
|
"end": "\"",
|
|
"patterns":
|
|
[
|
|
{
|
|
"name": "constant.character.escape.kurz",
|
|
"match": "\\\\."
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"scopeName": "source.kurz"
|
|
} |