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