Merge pull request #6350 from krnowak/krnowak/diverging-semicolon

Fix separating of diverging procedure types from block statements
This commit is contained in:
gingerBill
2026-03-01 22:19:04 +00:00
committed by GitHub
2 changed files with 4 additions and 0 deletions

View File

@@ -3490,6 +3490,9 @@ gb_internal Ast *parse_unary_expr(AstFile *f, bool lhs) {
case Token_Mul: // Used for error handling when people do C-like things
{
Token token = advance_token(f);
if (token.kind == Token_Not) {
skip_possible_newline(f);
}
Ast *expr = parse_unary_expr(f, lhs);
return ast_unary_expr(f, token, expr);
}

View File

@@ -1114,6 +1114,7 @@ semicolon_check:;
/*fallthrough*/
case Token_Increment:
case Token_Decrement:
case Token_Not:
/*fallthrough*/
t->insert_semicolon = true;
break;