Extract the wrapped value when yydebug [Bug #18075]

This commit is contained in:
Nobuyoshi Nakada 2021-08-15 01:33:31 +09:00
parent 4568ba0711
commit 2aa6826e81
Notes: git 2021-08-15 11:40:34 +09:00
2 changed files with 10 additions and 1 deletions

View file

@ -10791,7 +10791,7 @@ parser_token_value_print(struct parser_params *p, enum yytokentype type, const Y
#ifndef RIPPER
v = valp->node->nd_lit;
#else
v = valp->val;
v = get_value(valp->val);
#endif
rb_parser_printf(p, "%+"PRIsVALUE, v);
break;