mirror of
https://github.com/ruby/ruby.git
synced 2026-11-09 08:42:18 +08:00
This was previously an allow-list of the various tokens that were considered the start of a pattern expression. Instead, use our existing expression checking stuff and avoid having to list out each token. https://github.com/ruby/prism/commit/a139586ca0 Co-authored-by: kai-matsudate <[email protected]>
5 lines
109 B
Plaintext
5 lines
109 B
Plaintext
:a => 'a': | 1
|
|
^ unexpected '|', expecting end-of-input
|
|
^ unexpected '|', ignoring it
|
|
|