Actions
Bug #19195
closedPattern match pin becomes syntax error if there is newline before closing paren
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-darwin20]
Description
Syntax OK
1 in ^(
1)
# => true
Syntax error. I think it should be syntax ok.
1 in ^(
1
)
# => syntax error, unexpected '\n', expecting ')'
Updated by nobu (Nobuyoshi Nakada) over 1 year ago
- Status changed from Open to Closed
Applied in changeset git|764da87ab02d30c578138bdb0f37e7c18f2d4371.
[Bug #19195] Allow optional newlines before closing parenthesis
Actions
Like0
Like0