Fix newline handling

This commit is contained in:
Danila Fedorin 2019-05-13 21:17:51 -07:00
parent 54f89e5dfb
commit 895fe86c09

View File

@ -113,7 +113,7 @@ newlines
;
stmt
: expr newlines { $$ = concatenate($1, ";"); }
: expr NEWLINE newlines { $$ = concatenate($1, ";"); }
| if newlines { $$ = $1; }
| while newlines { $$ = $1; }
| BREAK newlines { $$ = new std::string("break;"); }