Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

- lexer.rl: fix incompatible delimiters on percent literal #808

Commits on Jul 10, 2021

  1. - lexer.rl: fix incompatible delimiters on percent literal

    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.
    pocke committed Jul 10, 2021
    Copy the full SHA
    e60f600 View commit details
    Browse the repository at this point in the history