diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-24 08:25:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-24 08:25:11 +0000 |
commit | 881e0c055143bc34e008ad78d62279cc08ac3511 (patch) | |
tree | f9d4ee9c755661da3bd9c5259de641522f0dd7b4 /parse.y | |
parent | 0dbe44076c3b9be63edce2b2124072e9f7694d5b (diff) | |
download | ruby-881e0c055143bc34e008ad78d62279cc08ac3511.tar.gz |
parse.y: fix token
* parse.y (paren_args): fix separator token at `foo::bar()` in
ripper.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51927 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3663,7 +3663,7 @@ method_call : fcall paren_args $$ = NEW_CALL($1, $3, $5); nd_set_line($$, $<num>4); /*% - $$ = dispatch3(call, $1, ripper_id2sym('.'), $3); + $$ = dispatch3(call, $1, ripper_id2sym(idCOLON2), $3); $$ = method_optarg($$, $5); %*/ } @@ -10979,7 +10979,7 @@ ripper_id2sym(ID id) const char *name; char buf[8]; - if (id <= 256) { + if (ISASCII(id)) { buf[0] = (char)id; buf[1] = '\0'; return ID2SYM(rb_intern2(buf, 1)); |