summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorfleuria <[email protected]>2013-10-30 16:52:42 +0800
committerfleuria <[email protected]>2013-10-30 17:17:13 +0800
commitc64cae4d2d64659cc660e929d787bf343d970f63 (patch)
treea982eed315b2240618f31fcb71069f40a7c96e5f
parentabe6db945491105ac265884990b73af0a073d16d (diff)
downloadmruby-c64cae4d2d64659cc660e929d787bf343d970f63.tar.gz
mruby-c64cae4d2d64659cc660e929d787bf343d970f63.zip
fix 3a4c8e2
unfortunately the previouse commit is incorrect, which still concate the keywords, but like this: method='"end\nb"' (201)
-rw-r--r--src/parse.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/parse.y b/src/parse.y
index 3ffc683f9..12dcfa471 100644
--- a/src/parse.y
+++ b/src/parse.y
@@ -3338,9 +3338,8 @@ nextc(parser_state *p)
mrbc_context *cxt = p->cxt;
if (cxt->partial_hook(p) < 0) return -1;
- p->cxt = NULL;
- tokadd(p, '\n');
- c = nextc(p);
+ c = '\n';
+ p->lineno = 1;
p->cxt = cxt;
return c;
}