annotate vendor/gems/coderay-0.9.7/lib/coderay/scanners/plaintext.rb @ 573:aed210f6095b feature_36

Layout changes for publication edit page. Still requires correct authorships number in heading, and for the new authorship to be added in its proper place.
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Wed, 10 Aug 2011 14:24:53 +0100
parents 0579821a129a
children
rev   line source
Chris@0 1 module CodeRay
Chris@0 2 module Scanners
Chris@0 3
Chris@0 4 class Plaintext < Scanner
Chris@0 5
Chris@0 6 register_for :plaintext, :plain
Chris@0 7 title 'Plain text'
Chris@0 8
Chris@0 9 include Streamable
Chris@0 10
Chris@0 11 KINDS_NOT_LOC = [:plain]
Chris@0 12
Chris@0 13 def scan_tokens tokens, options
Chris@0 14 text = (scan_until(/\z/) || '')
Chris@0 15 tokens << [text, :plain]
Chris@0 16 end
Chris@0 17
Chris@0 18 end
Chris@0 19
Chris@0 20 end
Chris@0 21 end