From 895fe86c0983f4496cf6d8f9cddf5e964f0df177 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Mon, 13 May 2019 21:17:51 -0700 Subject: [PATCH] Fix newline handling --- parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parser.y b/parser.y index d836b9f..cb8cbd2 100644 --- a/parser.y +++ b/parser.y @@ -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;"); }