File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
lib/prism/translation/parser Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -482,7 +482,8 @@ def to_a
482482 type = :tIDENTIFIER
483483 end
484484 when :tXSTRING_BEG
485- if ( next_token = lexed [ index ] [ 0 ] ) && next_token . type != :STRING_CONTENT && next_token . type != :STRING_END
485+ if ( next_token = lexed [ index ] [ 0 ] ) && !%i[ STRING_CONTENT STRING_END EMBEXPR_BEGIN ] . include? ( next_token . type )
486+ # self.`()
486487 type = :tBACK_REF2
487488 end
488489 quote_stack . push ( value )
Original file line number Diff line number Diff line change @@ -99,7 +99,6 @@ class ParserTest < TestCase
9999 "methods.txt" ,
100100 "strings.txt" ,
101101 "tilde_heredocs.txt" ,
102- "seattlerb/backticks_interpolation_line.txt" ,
103102 "seattlerb/bug169.txt" ,
104103 "seattlerb/case_in.txt" ,
105104 "seattlerb/difficult4__leading_dots2.txt" ,
You can’t perform that action at this time.
0 commit comments