summaryrefslogtreecommitdiffhomepage
path: root/src/parse.y
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-05-28 15:50:30 +0900
committerYukihiro Matsumoto <[email protected]>2012-05-28 15:50:30 +0900
commitcf8f429624e6c2e75cbd146e548dd1ca62930149 (patch)
treed0a57e7fd0e3d6857a1b7299f4b2700eab7b1420 /src/parse.y
parentb275be253d8969128f2828a76cd9eaf2cb1c0eef (diff)
downloadmruby-cf8f429624e6c2e75cbd146e548dd1ca62930149.tar.gz
mruby-cf8f429624e6c2e75cbd146e548dd1ca62930149.zip
ignore error nodes (with node_begin initialization)
Diffstat (limited to 'src/parse.y')
-rw-r--r--src/parse.y2
1 files changed, 1 insertions, 1 deletions
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);
}
;