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 @@ -483,7 +483,8 @@ def to_a
483483 type = :tIDENTIFIER
484484 end
485485 when :tXSTRING_BEG
486- if ( next_token = lexed [ index ] [ 0 ] ) && next_token . type != :STRING_CONTENT && next_token . type != :STRING_END
486+ if ( next_token = lexed [ index ] [ 0 ] ) && !%i[ STRING_CONTENT STRING_END EMBEXPR_BEGIN ] . include? ( next_token . type )
487+ # self.`()
487488 type = :tBACK_REF2
488489 end
489490 quote_stack . push ( value )
Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ class ParserTest < TestCase
9898 "heredocs_with_ignored_newlines.txt" ,
9999 "methods.txt" ,
100100 "strings.txt" ,
101- "seattlerb/backticks_interpolation_line.txt" ,
102101 "seattlerb/bug169.txt" ,
103102 "seattlerb/case_in.txt" ,
104103 "seattlerb/difficult4__leading_dots2.txt" ,
You can’t perform that action at this time.
0 commit comments