Skip to content

Support percent string equals delimiter#295

Open
ydah wants to merge 1 commit into
tree-sitter:masterfrom
ydah:fix-percent-eq-delimiter
Open

Support percent string equals delimiter#295
ydah wants to merge 1 commit into
tree-sitter:masterfrom
ydah:fix-percent-eq-delimiter

Conversation

@ydah

@ydah ydah commented Jul 5, 2026

Copy link
Copy Markdown

Ruby accepts %=...= as a percent string literal, but the parser previously treated %= only as the modulo assignment operator. This keeps %= assignment parsing intact by externalizing it, while allowing = to be used again as a percent literal delimiter.

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.

1 participant