module Rouge module Lexers class Text < Lexer tag 'text' filenames '*.txt' mimetypes 'text/plain' def stream_tokens(stream, &b) yield Token['Text'], stream.string end end end end