diff --git a/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json b/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json index 0d9b4a7b1..bf940a0b6 100644 --- a/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json +++ b/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json @@ -83,13 +83,25 @@ "1": { "name": "storage.type.declaration.function" }, "2": { "name": "entity.name.function" } }, - "end": "(\")(#)", + "end": "(\")(#{1,3})", "endCaptures": { - "1": { "name": "string.quoted.block.baml" }, - "2": { "name": "string.quoted.block.baml" } + "0": { "name": "string.quoted.block.baml" } }, - "name": "string.quoted.block.baml", - "patterns": [{ "include": "#comment" }, { "include": "#function_parameters" }, { "include": "#block_string" }] + "patterns": [ + { "include": "#comment" }, + { "include": "#function_parameters" }, + { + "begin": "(#{1,3}\")", + "beginCaptures": { + "0": { "name": "string.quoted.block.baml" } + }, + "end": "(?=\"#{1,3})", + "contentName": "string.quoted.block.baml", + "patterns": [ + { "include": "source.baml-jinja" } + ] + } + ] }, "function_declaration": { "comment": "Function declaration", @@ -576,18 +588,6 @@ } ] }, - "block_string": { - "begin": "(#(\"){1,3})", - "beginCaptures": { - "1": { "name": "string.quoted.block.baml.startquote" } - }, - "end": "((\"){1,3}#)", - "endCaptures": { - "1": { "name": "string.quoted.block.baml.endquote" } - }, - "contentName": "string.quoted.block.baml", - "patterns": [{ "include": "source.baml-jinja" }] - }, "block_string_pair": { "begin": "(\\w+)?\\s+(#(\"){1,3})", "beginCaptures": {