diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-30 01:25:41 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-10-30 01:25:41 -0700 |
| commit | ad4ce2ba4e7dd3336ecee986f526a8ed0c2f72d5 (patch) | |
| tree | 91e26a3ab2e0c4031282347197956858a9f7421a /src/parse.y | |
| parent | 73f6d7080ea6d582c046657a64374c8422b34b32 (diff) | |
| parent | 3a4c8e2d9fac288bfe6948c15fc3dc14449b17cd (diff) | |
| download | mruby-ad4ce2ba4e7dd3336ecee986f526a8ed0c2f72d5.tar.gz mruby-ad4ce2ba4e7dd3336ecee986f526a8ed0c2f72d5.zip | |
Merge pull request #1551 from Fleurer/fix1550
fix #1550
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parse.y b/src/parse.y index 7cac9b0c5..3ffc683f9 100644 --- a/src/parse.y +++ b/src/parse.y @@ -37,6 +37,7 @@ static void yyerror(parser_state *p, const char *s); static void yywarn(parser_state *p, const char *s); static void yywarning(parser_state *p, const char *s); static void backref_error(parser_state *p, node *n); +static void tokadd(parser_state *p, int c); #ifndef isascii #define isascii(c) (((c) & ~0x7f) == 0) @@ -3338,6 +3339,7 @@ nextc(parser_state *p) if (cxt->partial_hook(p) < 0) return -1; p->cxt = NULL; + tokadd(p, '\n'); c = nextc(p); p->cxt = cxt; return c; |
