Project

General

Profile

Feature #11154 » prefix-bang-qmark-irb.diff

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

View differences:

lib/irb/ruby-lex.rb
if (ch == "!" || ch == "?") && token[0,1] =~ /\w/ && peek(0) != "="
token.concat getc
if ch == "!" && (ch = getc) == "?" && peek(0) != "="
token.concat ch
end
end
# almost fix token
(2-2/2)