mirror of
https://github.com/ruby/ruby.git
synced 2026-10-29 08:55:35 +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 <kai.matsudate@techouse.jp>
5 lines
109 B
Plaintext
5 lines
109 B
Plaintext
:a => 'a': | 1
|
|
^ unexpected '|', expecting end-of-input
|
|
^ unexpected '|', ignoring it
|
|
|