Project

General

Profile

Feature #11154 ยป prefix-bang-qmark-irb.diff

for lib/irb/ruby-lex.rb - make_now_just (Kitsune TSUYUSATO), 05/15/2015 02:29 PM

View differences:

lib/irb/ruby-lex.rb
761 761

  
762 762
    if (ch == "!" || ch == "?") && token[0,1] =~ /\w/ && peek(0) != "="
763 763
      token.concat getc
764
      if ch == "!" && (ch = getc) == "?" && peek(0) != "="
765
        token.concat ch
766
      end
764 767
    end
765 768

  
766 769
    # almost fix token