1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

parse.y: replace with TOK_INTERN

* parse.y (parse_gvar): replace with equivalent macro, TOK_INTERN,
  as well as other places.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48545 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2014-11-23 17:02:43 +00:00
parent 8d72937271
commit be5bbaf5dc

View file

@ -7596,7 +7596,7 @@ parse_gvar(struct parser_params *parser, const enum lex_state_e last_state)
return '$';
}
gvar:
set_yylval_name(intern_cstr(tok(), tokidx, current_enc));
set_yylval_name(TOK_INTERN());
return tGVAR;
case '&': /* $&: last match */