[ruby/prism] Fix a token incompatibility for Prism::Translation::Parser::Lexer
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.
[ruby/prism] Fix a token incompatibility for
Prism::Translation::Parser::LexerIn practice, the
BACKTICKis mapped either as:tXSTRING_BEGor:tBACK_REF2.The former is used in xstrings like
`foo`, while the latter is utilized asa 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