Skip to content

Fix multibyte non-alphanumeric chars for bare percent string literals#4131

Merged
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:bare-percent-multibyte-delimiter
Jun 10, 2026
Merged

Fix multibyte non-alphanumeric chars for bare percent string literals#4131
kddnewton merged 1 commit into
ruby:mainfrom
Earlopain:bare-percent-multibyte-delimiter

Conversation

@Earlopain

@Earlopain Earlopain commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Fixes #4130

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.

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.
@Earlopain Earlopain force-pushed the bare-percent-multibyte-delimiter branch from 1360e4f to 286ba67 Compare June 10, 2026 07:48
@Earlopain Earlopain changed the title Fix multibyte delimiters for bare percent string literals @Earlopain Fix multibyte non-alphanumeric chars for bare percent string literals Jun 10, 2026
@Earlopain Earlopain changed the title @Earlopain Fix multibyte non-alphanumeric chars for bare percent string literals Fix multibyte non-alphanumeric chars for bare percent string literals Jun 10, 2026
@kddnewton kddnewton merged commit 69a9a36 into ruby:main Jun 10, 2026
69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lexer returns invalid UTF-8 token value for valid UTF-8 source

2 participants