Project

General

Profile

Actions

Bug #19195

closed

Pattern match pin becomes syntax error if there is newline before closing paren

Added by tompng (tomoya ishida) over 1 year ago. Updated over 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-darwin20]
[ruby-core:111262]

Description

Syntax OK

1 in ^(
1)
# => true

Syntax error. I think it should be syntax ok.

1 in ^(
1
)
# => syntax error, unexpected '\n', expecting ')'
Actions #1

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

Also available in: Atom PDF

Like0
Like0