feat: highlight js inside script block in .bru files

This commit is contained in:
Anoop M D 2023-01-10 10:58:47 +05:30
parent f21cb240c4
commit 61dbca3243

View File

@ -7,13 +7,16 @@
},
{
"include": "#strings"
},
{
"include": "#script-block"
}
],
"repository": {
"keywords": {
"patterns": [{
"name": "keyword.control.bruno",
"match": "\\b(if|while|for|return)\\b"
"match": "\\b(ver|type|name|method|url|params|body-mode|body|script|assert|vars|response-example|readme)\\b"
}]
},
"strings": {
@ -26,6 +29,16 @@
"match": "\\\\."
}
]
},
"script-block": {
"name": "meta.script-block.bruno",
"begin": "script",
"end": "/script",
"patterns": [
{
"include": "source.js"
}
]
}
},
"scopeName": "source.bru"