Sha256: 093a4c4c92f4f099bad4b6d1c19ae049c4fc679cca7e865eb7ca7b37c62fdb1b
Contents?: true
Size: 395 Bytes
Versions: 7
Compression:
Stored size: 395 Bytes
Contents
module Rouge module Lexers class Text < Lexer desc "A boring lexer that doesn't highlight anything" tag 'text' filenames '*.txt' mimetypes 'text/plain' default_options :token => 'Text' def token @token ||= Token[option :token] end def stream_tokens(stream, &b) yield self.token, stream.string end end end end
Version data entries
7 entries across 7 versions & 1 rubygems