bruno/packages/bruno-vscode-extension/syntaxes/bruno.tmLanguage.json

45 lines
850 B
JSON

{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "bruno",
"patterns": [
{
"include": "#keywords"
},
{
"include": "#strings"
},
{
"include": "#script-block"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.bruno",
"match": "\\b(ver|type|name|method|url|params|body-mode|body|script|assert|vars|response-example|readme)\\b"
}]
},
"strings": {
"name": "string.quoted.double.bruno",
"begin": "\"",
"end": "\"",
"patterns": [
{
"name": "constant.character.escape.bruno",
"match": "\\\\."
}
]
},
"script-block": {
"name": "meta.script-block.bruno",
"begin": "script",
"end": "/script",
"patterns": [
{
"include": "source.js"
}
]
}
},
"scopeName": "source.bru"
}