diff --git a/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json b/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json index 72d7e196a..4a618bb03 100644 --- a/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json +++ b/typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json @@ -325,6 +325,33 @@ }, "block_attribute": { "patterns": [ + { + "begin": "(@{1,2}(?:check|assert))\\(([^,]+)?\\s*,\\s*()", + "beginCaptures": { + "1": { "name": "entity.name.function.attribute" }, + "2": { "name": "variable.parameter.checkName" }, + "3": { "name": "punctuation.definition.template-expression.begin" } + }, + "end": "()\\)", + "endCaptures": { + "1": { "name": "punctuation.definition.template-expression.end" } + }, + "contentName": "string.quoted.block.thing", + "patterns": [{ "include": "source.baml-jinja" }] + }, + { + "begin": "(@{1,2}assert)\\(", + "beginCaptures": { + "1": { "name": "entity.name.function.attribute.assert" }, + "2": { "name": "punctuation.definition.template-expression.begin" } + }, + "end": "()\\)", + "endCaptures": { + "1": { "name": "punctuation.definition.template-expression.end" } + }, + "contentName": "string.quoted.block.thing", + "patterns": [{ "include": "source.baml-jinja" }] + }, { "begin": "(@{1,2}\\w+)\\(#\"", "beginCaptures": {