class Rouge::TextAnalyzer
def lexes_cleanly?(lexer)
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
def lexes_cleanly?(lexer) lexer.lex(self) do |(tok, _)| return false if tok.name == 'Error' end true end