diff --git a/packages/bruno-vscode-extension/syntaxes/bruno.tmLanguage.json b/packages/bruno-vscode-extension/syntaxes/bruno.tmLanguage.json index 8a736928..19f8062e 100644 --- a/packages/bruno-vscode-extension/syntaxes/bruno.tmLanguage.json +++ b/packages/bruno-vscode-extension/syntaxes/bruno.tmLanguage.json @@ -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"