Skip to content
  • Koichi ITO's avatar
    f8cab4ef
    [ruby/prism] Fix a token incompatibility for `Prism::Translation::Parser::Lexer` · f8cab4ef
    Koichi ITO authored
    In practice, the `BACKTICK` is mapped either as `:tXSTRING_BEG` or `:tBACK_REF2`.
    The former is used in xstrings like `` `foo` ``, while the latter is utilized as
    a back reference in contexts like `` A::` ``.
    This PR will make corrections to differentiate the use of `BACKTICK`.
    
    This mistake was discovered through the investigation of xstring.txt file.
    The PR will run tests from xstring.txt file except for `` `f\oo` ``, which will still fail,
    hence it will be separated into xstring_with_backslash.txt file.
    This separation will facilitate addressing the correction at a different time.
    
    https://github.com/ruby/prism/commit/49ad8df40a
    f8cab4ef
    [ruby/prism] Fix a token incompatibility for `Prism::Translation::Parser::Lexer`
    Koichi ITO authored
    In practice, the `BACKTICK` is mapped either as `:tXSTRING_BEG` or `:tBACK_REF2`.
    The former is used in xstrings like `` `foo` ``, while the latter is utilized as
    a back reference in contexts like `` A::` ``.
    This PR will make corrections to differentiate the use of `BACKTICK`.
    
    This mistake was discovered through the investigation of xstring.txt file.
    The PR will run tests from xstring.txt file except for `` `f\oo` ``, which will still fail,
    hence it will be separated into xstring_with_backslash.txt file.
    This separation will facilitate addressing the correction at a different time.
    
    https://github.com/ruby/prism/commit/49ad8df40a
Loading