From c64cae4d2d64659cc660e929d787bf343d970f63 Mon Sep 17 00:00:00 2001 From: fleuria Date: Wed, 30 Oct 2013 16:52:42 +0800 Subject: fix 3a4c8e2 unfortunately the previouse commit is incorrect, which still concate the keywords, but like this: method='"end\nb"' (201) --- src/parse.y | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/parse.y') 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; } -- cgit v1.2.3