Mercurial > hg > soundsoftware-site
comparison vendor/gems/coderay-0.9.7/lib/coderay/scanners/.svn/text-base/plaintext.rb.svn-base @ 210:0579821a129a
Update to Redmine trunk rev 4802
author | Chris Cannam |
---|---|
date | Tue, 08 Feb 2011 13:51:46 +0000 |
parents | vendor/plugins/coderay-0.9.2/lib/coderay/scanners/plaintext.rb@513646585e45 |
children |
comparison
equal
deleted
inserted
replaced
128:07fa8a8b56a8 | 210:0579821a129a |
---|---|
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 |