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

Also available in: Atom PDF

Like0
Like0