diff options
| author | S-H-GAMELINKS <gamelinks007@gmail.com> | 2024-05-15 16:37:30 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2025-01-02 17:10:31 +0900 |
| commit | 03b37fb342249fe91a81dfbf422c54c66b6c5484 (patch) | |
| tree | d5c557ebb955f05bdfeb400b0d334415d3e7980d | |
| parent | 8034e9c3d001ca3dff124ab42972684eac8af2ae (diff) | |
Introduce inline_operation rule
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/10773
| -rw-r--r-- | parse.y | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -2905,6 +2905,9 @@ rb_parser_ary_free(rb_parser_t *p, rb_parser_ary_t *ary) | keyword_variable ; +%rule %inline inline_operation : ident_or_const + | tFID + ; /* * parameterizing rules */ @@ -3753,8 +3756,7 @@ cpath : tCOLON3 cname } ; -fname : ident_or_const - | tFID +fname : inline_operation | op { SET_LEX_STATE(EXPR_ENDFN); @@ -6824,8 +6826,7 @@ assoc : arg_value tASSOC arg_value } ; -operation : ident_or_const - | tFID +operation : inline_operation ; operation2 : operation |
