From 03b37fb342249fe91a81dfbf422c54c66b6c5484 Mon Sep 17 00:00:00 2001 From: S-H-GAMELINKS Date: Wed, 15 May 2024 16:37:30 +0900 Subject: [PATCH] Introduce inline_operation rule --- parse.y | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/parse.y b/parse.y index 463781ce3a90f8..5463dae6ca052c 100644 --- a/parse.y +++ b/parse.y @@ -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