class Rouge::TextAnalyzer

def lexes_cleanly?(lexer)

error tokens.
Return true if the result of lexing with the given lexer contains no
def lexes_cleanly?(lexer)
  lexer.lex(self) do |(tok, _)|
    return false if tok.name == 'Error'
  end
  true
end