mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-22 04:20:35 +00:00
Improve C-like syntax mistakes error messages
This commit is contained in:
@@ -5014,6 +5014,7 @@ gb_internal Ast *parse_stmt(AstFile *f) {
|
||||
case Token_Xor:
|
||||
case Token_Not:
|
||||
case Token_And:
|
||||
case Token_Mul: // Used for error handling when people do C-like things
|
||||
s = parse_simple_stmt(f, StmtAllowFlag_Label);
|
||||
expect_semicolon(f);
|
||||
return s;
|
||||
|
||||
Reference in New Issue
Block a user