Skip to content

Commit

Permalink
Fix block expression parsing when the opening brace is missing.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexrp committed Feb 18, 2023
1 parent 342c1ae commit bf95975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/syntax/LanguageParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1214,7 +1214,7 @@ private ExpressionSyntax ParseParenthesizedOrTupleExpression()

private BlockExpressionSyntax ParseBlockExpression()
{
var open = Read();
var open = Expect(SyntaxTokenKind.OpenBrace);
var stmts = Builder<StatementSyntax>();

while (Peek1()?.Kind != SyntaxTokenKind.CloseBrace)
Expand Down

0 comments on commit bf95975

Please sign in to comment.