Skip to content

Fix parser translator ranges for mulltiline strings with multiline bytes#3400

Merged
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:parser-translator-multiline-strings-offsets
Jan 12, 2025
Merged

Fix parser translator ranges for mulltiline strings with multiline bytes#3400
kddnewton merged 1 commit intoruby:mainfrom
Earlopain:parser-translator-multiline-strings-offsets

Conversation

@Earlopain
Copy link
Collaborator

A rather silly issue with a rather simple fix.
The ranges already use the offset cache, this effectivly double-encoded them.

Properly fixes rubocop/rubocop#12982
Fixes rubocop/rubocop#13204

I didn't at tests since it seems highly specific but I can add one if you prefer.

A rather silly issue with a rather simple fix.
The ranges already use the offset cache, this effectivly double-encoded them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants