Files
bf-server/syntaxes/bf.tmLanguage.json

74 lines
1.2 KiB
JSON
Raw Permalink Normal View History

2021-04-09 23:15:58 +05:30
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"scopeName": "source.bf",
"patterns": [
{
"include": "#program"
}
],
"repository": {
"program": {
"patterns": [
{
"include": "#valchange"
},
{
"include":"#ptrchange"
},
{
"include":"#input"
},
{
"include":"#output"
},
{
"include":"#paren-expression"
},
{
"include": "#everythingelse"
}
]
},
"valchange": {
"match": "[+-]",
"name": "keyword.operator"
},
"ptrchange":{
"match":"[<>]",
"name":"keyword.operator"
},
"everythingelse": {
"match": ".",
"name": "comment.block.documentation"
},
"input":{
"match":",",
"name":"keyword.operator.input"
},
"output":{
"match":"[.]",
"name":"keyword.operator.output"
},
"paren-expression": {
2021-04-09 23:40:13 +05:30
"begin": "\\[",
"end": "\\]",
2021-04-09 23:15:58 +05:30
"beginCaptures": {
"0": {
"name": "punctuation.paren.open"
}
},
"endCaptures": {
"0": {
"name": "punctuation.paren.close"
}
},
"name": "expression.group",
"patterns": [
{
"include": "#program"
}
]
}
}
}