Fix newline handling

This commit is contained in:
Danila Fedorin 2019-05-13 21:17:51 -07:00
parent 54f89e5dfb
commit 895fe86c09
1 changed files with 1 additions and 1 deletions

View File

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