[ruby-core:111262] [Ruby master Bug#19195] Pattern match pin becomes syntax error if there is newline before closing paren

12 Dec
2022
12 Dec
'22
1:12 p.m.
Issue #19195 has been reported by tompng (tomoya ishida). ---------------------------------------- Bug #19195: Pattern match pin becomes syntax error if there is newline before closing paren https://bugs.ruby-lang.org/issues/19195 * Author: tompng (tomoya ishida) * Status: Open * Priority: Normal * ruby -v: ruby 3.1.0p0 (2021-12-25 revision fb4df44d16) [x86_64-darwin20] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Syntax OK ~~~ruby 1 in ^( 1) # => true ~~~ Syntax error. I think it should be syntax ok. ~~~ruby 1 in ^( 1 ) # => syntax error, unexpected '\n', expecting ')' ~~~ -- https://bugs.ruby-lang.org/
964
Age (days ago)
964
Last active (days ago)
0 comments
1 participants
participants (1)
-
tompng (tomoya ishida)