lib/yard/parser/ruby/legacy/ruby_lex.rb in yard-0.9.8 vs lib/yard/parser/ruby/legacy/ruby_lex.rb in yard-0.9.9
- old
+ new
@@ -597,11 +597,11 @@
@OP.def_rules("\0", "\004", "\032") do |chars, _io|
Token(TkEND_OF_SCRIPT).set_text(chars)
end
@OP.def_rules(" ", "\t", "\f", "\r", "\13") do |chars, _io|
- @space_seen = TRUE
+ @space_seen = true
while (ch = getc) =~ /[ \t\f\r\13]/
chars << ch
end
ungetc
Token(TkSPACE).set_text(chars)
@@ -640,13 +640,13 @@
@OP.def_rule("\n") do
print "\\n\n" if RubyLex.debug?
@colonblock_seen = false
case @lex_state
when EXPR_BEG, EXPR_FNAME, EXPR_DOT
- @continue = TRUE
+ @continue = true
else
- @continue = FALSE
+ @continue = false
@lex_state = EXPR_BEG
end
Token(TkNL).set_text("\n")
end
@@ -1164,11 +1164,11 @@
end
return Token(TkINTEGER).set_text(str)
end
type = TkINTEGER
- allow_point = TRUE
- allow_e = TRUE
+ allow_point = true
+ allow_e = true
while ch = getc
case ch
when /[0-9_]/
str << ch