Revert "Remove rule requiring non-nil block-style statements to be semi-terminated"
This reverts commit 0f5eaef5fb
.
This commit is contained in:
parent
e000d1db0a
commit
ae6ea068a1
21 changed files with 35 additions and 32 deletions
|
@ -1848,7 +1848,7 @@ class parser {
|
|||
token::SEMI {
|
||||
self.bump();
|
||||
push(stmts,
|
||||
@{node: stmt_expr(e, stmt_id) with *stmt});
|
||||
@{node: stmt_semi(e, stmt_id) with *stmt});
|
||||
}
|
||||
token::RBRACE {
|
||||
expr = some(e);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue