diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-24 13:49:44 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-10-24 13:49:44 +0000 |
commit | 5940b1f6fc6745e4cb7516345a24b9b45567d21b (patch) | |
tree | 86e77b37741378ba9485e96da80c5f559b93852d /parse.y | |
parent | fe4ed311d1c8807be8f791041eadde890f2ad96e (diff) |
parse.y: fix fluent interface identifier
* parse.y (parser_yylex): dispatch newline and space at fluent
interface, so that the following identifier does not include the
space. [ruby-dev:48684] [Bug #10411]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48126 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -7763,9 +7763,15 @@ parser_yylex(struct parser_params *parser) space_seen = 1; break; case '.': { +#ifdef RIPPER + ripper_dispatch_delayed_token(parser, tIGNORED_NL); +#endif if ((c = nextc()) != '.') { pushback(c); pushback('.'); +#ifdef RIPPER + ripper_dispatch_scan_event(parser, tSP); +#endif goto retry; } } |