Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- lexer.rl: fix incompatible delimiters on percent literal (#808)
CRuby only accepts ASCII characters except `[A-Za-z0-9]` as a delimiter of percent literal, but the lexer accepts different characters. For exmaple: * CRuby accepts `%w^Dfoo^D`, but parser didn't (note: `^D` means 0x04) * CRuby reject `%w1foo1`, but parser accepts * CRuby reject `%w★foo★`, but parser accepts This patch fixes the problems.
- Loading branch information
Showing
2 changed files
with
44 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters