# File lib/html5/tokenizer.rb, line 671 def comment_end_dash_state data = @stream.char if data == "-" @state = :comment_end_state elsif data == :EOF @token_queue << {:type => :ParseError, :data => "eof-in-comment-end-dash"} @token_queue << @current_token @state = :data_state else @current_token[:data] += "-" + data +\ @stream.chars_until("-") # Consume the next character which is either a "-" or an :EOF as # well so if there's a "-" directly after the "-" we go nicely to # the "comment end state" without emitting a ParseError there. @stream.char end return true end