Skip to content

Commit

Permalink
Introduce inline_operation rule
Browse files Browse the repository at this point in the history
  • Loading branch information
S-H-GAMELINKS authored and nobu committed Jan 2, 2025
1 parent 8034e9c commit 03b37fb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions parse.y
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -3753,8 +3756,7 @@ cpath : tCOLON3 cname
}
;

fname : ident_or_const
| tFID
fname : inline_operation
| op
{
SET_LEX_STATE(EXPR_ENDFN);
Expand Down Expand Up @@ -6824,8 +6826,7 @@ assoc : arg_value tASSOC arg_value
}
;

operation : ident_or_const
| tFID
operation : inline_operation
;

operation2 : operation
Expand Down

0 comments on commit 03b37fb

Please sign in to comment.