comparison vendor/gems/coderay-1.0.0/lib/coderay/scanners/text.rb @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 module CodeRay
2 module Scanners
3
4 # Scanner for plain text.
5 #
6 # Yields just one token of the kind :plain.
7 #
8 # Alias: +plaintext+, +plain+
9 class Text < Scanner
10
11 register_for :text
12 title 'Plain text'
13
14 KINDS_NOT_LOC = [:plain] # :nodoc:
15
16 protected
17
18 def scan_tokens encoder, options
19 encoder.text_token string, :plain
20 encoder
21 end
22
23 end
24
25 end
26 end