mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-18 20:40:28 +00:00
Merge pull request #6350 from krnowak/krnowak/diverging-semicolon
Fix separating of diverging procedure types from block statements
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -1114,6 +1114,7 @@ semicolon_check:;
|
||||
/*fallthrough*/
|
||||
case Token_Increment:
|
||||
case Token_Decrement:
|
||||
case Token_Not:
|
||||
/*fallthrough*/
|
||||
t->insert_semicolon = true;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user