#panic; Minor change to demo.odin; Fix #assert bug at file scope

This commit is contained in:
gingerBill committed 2019-10-13 12:38:23 +01:00
1 parent fa81061db0
commit 2a6d9e8927
10 files changed
+145 -122

No files matched your search

+1 -1
View File
@@ -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;