Skip to content

Commit

Permalink
Fix vscode syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniosarosi committed Dec 9, 2024
1 parent 6e64ed0 commit 35cbcc2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function NestedAlias(c: Combination) -> Combination {

// Test attribute merging.
type Currency = int @check(gt_ten, {{ this > 10 }})
type Amount = Currency @assert ({{ this > 0 }})
type Amount = Currency @assert({{ this > 0 }})

class MergeAttrs {
amount Amount @description("In USD")
Expand Down
5 changes: 3 additions & 2 deletions typescript/vscode-ext/packages/syntaxes/baml.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -731,9 +731,10 @@
{ "include": "#comment" },
{
"begin": "(?<=\\=)\\s*",
"end": "(?=$|\\n)",
"end": "(?=//|$|\\n)",
"patterns": [
{ "include": "#type_definition" }
{ "include": "#type_definition" },
{ "include": "#block_attribute" }
]
}
]
Expand Down

0 comments on commit 35cbcc2

Please sign in to comment.