comparison vendor/plugins/coderay-0.9.2/lib/coderay/scanners/.svn/text-base/plaintext.rb.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 module CodeRay
2 module Scanners
3
4 class Plaintext < Scanner
5
6 register_for :plaintext, :plain
7 title 'Plain text'
8
9 include Streamable
10
11 KINDS_NOT_LOC = [:plain]
12
13 def scan_tokens tokens, options
14 text = (scan_until(/\z/) || '')
15 tokens << [text, :plain]
16 end
17
18 end
19
20 end
21 end