Mercurial > hg > soundsoftware-site
view vendor/gems/coderay-0.9.7/lib/coderay/scanners/plaintext.rb @ 562:82a6e3756383 feature_36
Some changes to the way the author/users are added to a publication. Not finished.
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Fri, 05 Aug 2011 17:44:17 +0100 |
parents | 0579821a129a |
children |
line wrap: on
line source
module CodeRay module Scanners class Plaintext < Scanner register_for :plaintext, :plain title 'Plain text' include Streamable KINDS_NOT_LOC = [:plain] def scan_tokens tokens, options text = (scan_until(/\z/) || '') tokens << [text, :plain] end end end end