add semicolons after statements

This commit is contained in:
Luna 2019-09-20 13:34:13 -03:00
parent 126bd476d6
commit 79107f876b
1 changed files with 1 additions and 0 deletions

View File

@ -679,6 +679,7 @@ pub const Parser = struct {
while (self.peek().typ != .RightBrace) {
var stmt = try self.parseStmt();
printer.printNode(try self.mkStmt(stmt), 0);
_ = try self.consumeSingle(.Semicolon);
try stmts.append(stmt.*);
}