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:
parent
8d72937271
commit
be5bbaf5dc
1 changed files with 1 additions and 1 deletions
2
parse.y
2
parse.y
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue