29764156f6 (master): [ruby/prism] Fix multibyte non-alphanumeric chars for bare percent string literals

0 views
Skip to first unread message

Earlopain

unread,
8:21 AM (2 hours ago) 8:21 AM
to ruby...@g.ruby-lang.org
Earlopain 2026-06-10 07:48:27 +0000 (Wed, 10 Jun 2026)

New Revision: 29764156f6

https://github.com/ruby/ruby/commit/29764156f6

Log:
[ruby/prism] Fix multibyte non-alphanumeric chars for bare percent string literals

Alphanumerics are correctly handled in the check below
by simply discarding the `%`.
The same was not true for the other types, which caused some assumption to no longer hold.

https://github.com/ruby/prism/commit/69a9a36a6a

Added files:
test/prism/errors/alnum_delimiters_10.txt
test/prism/errors/alnum_delimiters_11.txt
Modified files:
prism/prism.c
Reply all
Reply to author
Forward
0 new messages