Remove unused token definitions for tRPAREN in Ripper and parser files

This commit is contained in:
ydah 2024-12-29 11:45:54 +09:00 committed by Yudai Takada
parent 8fb17f86d7
commit de8deb5f9c
Notes: git 2025-01-06 22:18:15 +00:00
2 changed files with 0 additions and 3 deletions

View File

@ -255,7 +255,6 @@ ripper_token2eventid(enum yytokentype tok)
[tRATIONAL] = O(rational),
[tREGEXP_BEG] = O(regexp_beg),
[tREGEXP_END] = O(regexp_end),
[tRPAREN] = O(rparen),
[tRSHFT] = O(op),
[tSTAR] = O(op),
[tDSTAR] = O(op),

View File

@ -967,7 +967,6 @@ parser_token2char(struct parser_params *p, enum yytokentype tok)
TOKEN2CHAR(tASSOC);
TOKEN2CHAR(tLPAREN);
TOKEN2CHAR(tLPAREN_ARG);
TOKEN2CHAR(tRPAREN);
TOKEN2CHAR(tLBRACK);
TOKEN2CHAR(tLBRACE);
TOKEN2CHAR(tLBRACE_ARG);
@ -2845,7 +2844,6 @@ rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary)
%token tASSOC "=>"
%token tLPAREN "("
%token tLPAREN_ARG "( arg"
%token tRPAREN ")"
%token tLBRACK "["
%token tLBRACE "{"
%token tLBRACE_ARG "{ arg"