Files
ruby/test/prism/errors/dynamic_label_pattern.txt
Kevin Newtonandkai-matsudate 0f5e45d8cf [ruby/prism] Fix pattern matching trailing comma
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>
2026-07-17 19:54:47 +00:00

5 lines
109 B
Plaintext

:a => 'a': | 1
^ unexpected '|', expecting end-of-input
^ unexpected '|', ignoring it