method
identify_comment
v1_9_1_378 -
Show latest stable
- Class:
RubyLex
identify_comment()public
No documentation available.
# File lib/irb/ruby-lex.rb, line 1124
def identify_comment
@ltype = "#"
while ch = getc
# if ch == "\\" #"
# read_escape
# end
if ch == "\n"
@ltype = nil
ungetc
break
end
end
return Token(TkCOMMENT)
end