summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2022-02-12 00:07:02 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-02-12 12:28:07 +0900
commite6b537e605381b6f1c9518adbeb6813c5e579df7 (patch)
treedb7320d713c704ef8a71d4c589c8799ab75d005b /parse.y
parentc0651b4ae1426f8ad9322a320d22035223c77537 (diff)
Reuse operation rule for operation2
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5545
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse.y b/parse.y
index 1c48d17d0d..32d4949869 100644
--- a/parse.y
+++ b/parse.y
@@ -5740,9 +5740,7 @@ operation : tIDENTIFIER
| tFID
;
-operation2 : tIDENTIFIER
- | tCONSTANT
- | tFID
+operation2 : operation
| op
;