diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-20 00:09:51 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-20 00:09:51 +0000 |
commit | 6ee138021eff27a4977a51c2eed2eff10c7333c8 (patch) | |
tree | 73a392a0e5a6fe862cc953fa672ed0aeefb078d0 /parse.y | |
parent | 9d2200506720bd565a38cf378b7ccd9ffc31827e (diff) | |
download | ruby-6ee138021eff27a4977a51c2eed2eff10c7333c8.tar.gz |
parse.y: end of script at newline
* parse.y (parser_yylex): deal with end of script chars just after
ignored newline as other places. [ruby-core:84349] [Bug #14206]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -8341,8 +8341,8 @@ parser_yylex(struct parser_params *parser) } goto retry; } - while ((c = nextc())) { - switch (c) { + while (1) { + switch (c = nextc()) { case ' ': case '\t': case '\f': case '\r': case '\13': /* '\v' */ space_seen = 1; |