We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f76b487 commit 84d0722Copy full SHA for 84d0722
lib/prism/lex_compat.rb
@@ -440,28 +440,21 @@ def to_a
440
441
while index < max_index
442
token = tokens[index]
443
+ results << token
444
index += 1
445
446
case token.event
447
when :on_embexpr_beg, :on_heredoc_beg
448
embexpr_balance += 1
- results << token
449
when :on_embexpr_end, :on_heredoc_end
450
embexpr_balance -= 1
451
452
when :on_tstring_content
453
if embexpr_balance == 0
454
455
-
456
while index < max_index && tokens[index].event == :on_tstring_content
457
token.value << tokens[index].value
458
459
end
460
- else
461
462
463
464
465
466
467
0 commit comments