mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 09:23:17 +01:00
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": "#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"
|
||||
|
Loading…
Reference in New Issue
Block a user