mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-02 20:58:15 +00:00
#panic; Minor change to demo.odin; Fix #assert bug at file scope
This commit is contained in:
@@ -1091,7 +1091,7 @@ parse_stmt :: proc(p: ^Parser) -> ^ast.Stmt {
|
||||
case: error(p, stmt.pos, "#complete can only be applied to a switch statement");
|
||||
}
|
||||
return stmt;
|
||||
case "assert":
|
||||
case "assert", "panic":
|
||||
bd := ast.new(ast.Basic_Directive, tok.pos, end_pos(tag));
|
||||
bd.tok = tok;
|
||||
bd.name = name;
|
||||
|
||||
Reference in New Issue
Block a user