Skip to content

Commit 4019273

Browse files
gh-70: Ban newline between TRY and CATCH.
1 parent 8202bd1 commit 4019273

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/parser.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -613,7 +613,6 @@ static Stmt* parse_try(Parser* parser) {
613613
Token tok = parser->current_token;
614614
consume(parser, TOKEN_TRY, "Expected 'TRY'");
615615
Stmt* try_block = parse_block(parser);
616-
skip_newlines(parser);
617616
consume(parser, TOKEN_CATCH, "Expected 'CATCH' after TRY");
618617
char* catch_name = NULL;
619618
if (match(parser, TOKEN_LPAREN)) {

0 commit comments

Comments
 (0)