From cf8f429624e6c2e75cbd146e548dd1ca62930149 Mon Sep 17 00:00:00 2001 From: Yukihiro Matsumoto Date: Mon, 28 May 2012 15:50:30 +0900 Subject: ignore error nodes (with node_begin initialization) --- src/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parse.y b/src/parse.y index 37a16c614..2d7003f62 100644 --- a/src/parse.y +++ b/src/parse.y @@ -1008,7 +1008,7 @@ top_stmts : none } | error top_stmt { - $$ = $2; + $$ = new_begin(p, 0); } ; -- cgit v1.2.3