Fix newline handling
This commit is contained in:
parent
54f89e5dfb
commit
895fe86c09
2
parser.y
2
parser.y
|
@ -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;"); }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user