diff options
| author | ydah <t.yudai92@gmail.com> | 2025-03-14 00:16:34 +0900 |
|---|---|---|
| committer | Yudai Takada <t.yudai92@gmail.com> | 2025-03-14 12:32:03 +0900 |
| commit | f5f195180883fe80f02bc2579ba9aa84118e834b (patch) | |
| tree | 3c799a4806ada823bf828acd0dfd7927928b9863 /parse.y | |
| parent | a4328a424bbbe3fdeefa861d5946e6258bc87260 (diff) | |
Refactor parse.y to replace tIDENTIFIER and tCONSTANT with ident_or_const inline rules
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12929
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -3739,7 +3739,7 @@ lhs : user_or_keyword_variable $$ = aryset(p, $1, $3, &@$); /*% ripper: aref_field!($:1, $:3) %*/ } - | primary_value call_op tIDENTIFIER + | primary_value call_op ident_or_const { $$ = attrset(p, $1, $2, $3, &@$); /*% ripper: field!($:1, $:2, $:3) %*/ @@ -3749,11 +3749,6 @@ lhs : user_or_keyword_variable $$ = attrset(p, $1, idCOLON2, $3, &@$); /*% ripper: field!($:1, $:2, $:3) %*/ } - | primary_value call_op tCONSTANT - { - $$ = attrset(p, $1, $2, $3, &@$); - /*% ripper: field!($:1, $:2, $:3) %*/ - } | primary_value tCOLON2 tCONSTANT { /*% ripper: const_path_field!($:1, $:3) %*/ |
