# File lib/html5/tokenizer.rb, line 586 def bogus_comment_state # Make a new comment token and give it as value all the characters # until the first > or :EOF (chars_until checks for :EOF automatically) # and emit it. @token_queue << {:type => :Comment, :data => @stream.chars_until((">"))} # Eat the character directly after the bogus comment which is either a # ">" or an :EOF. @stream.char @state = :data_state return true end