summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorS-H-GAMELINKS <gamelinks007@gmail.com>2022-06-06 23:13:55 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-08-19 09:51:06 +0900
commit3541f32951fecdfea76ef6de028d50ba58cb07b9 (patch)
tree246244bf082807d76d0f8bd8e21559af418c8673 /parse.y
parentf09536175853d883130c2e54a1d418b497890462 (diff)
downloadruby-3541f32951fecdfea76ef6de028d50ba58cb07b9.tar.gz
Reuse opt_nl rule
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y3
1 files changed, 1 insertions, 2 deletions
diff --git a/parse.y b/parse.y
index cdb7b4b93c..426e4df772 100644
--- a/parse.y
+++ b/parse.y
@@ -5779,8 +5779,7 @@ rbracket : opt_nl ']'
rbrace : opt_nl '}'
;
-trailer : /* none */
- | '\n'
+trailer : opt_nl
| ','
;