forked from extern/bruno
feat: highlight js inside script block in .bru files
This commit is contained in:
parent
f21cb240c4
commit
61dbca3243
@ -7,13 +7,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"include": "#strings"
|
"include": "#strings"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"include": "#script-block"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"keywords": {
|
"keywords": {
|
||||||
"patterns": [{
|
"patterns": [{
|
||||||
"name": "keyword.control.bruno",
|
"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": {
|
"strings": {
|
||||||
@ -26,6 +29,16 @@
|
|||||||
"match": "\\\\."
|
"match": "\\\\."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"script-block": {
|
||||||
|
"name": "meta.script-block.bruno",
|
||||||
|
"begin": "script",
|
||||||
|
"end": "/script",
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "source.js"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scopeName": "source.bru"
|
"scopeName": "source.bru"
|
||||||
|
Loading…
Reference in New Issue
Block a user