add semicolons after statements
This commit is contained in:
parent
126bd476d6
commit
79107f876b
1 changed files with 1 additions and 0 deletions
|
@ -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.*);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue