diff options
author | murphy <murphy@rubychan.de> | 2010-03-26 03:03:04 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-03-26 03:03:04 +0000 |
commit | 971e6861621518e49687e2521552067838401720 (patch) | |
tree | c8c91c1527c3e3d271178819b3f158ad60fb74ed /lib/coderay/scanners/plaintext.rb | |
parent | 5daa248eb972fb6c1a07fdf74999cb40a51451aa (diff) | |
download | coderay-971e6861621518e49687e2521552067838401720.tar.gz |
Cleanup of JSON Scanner.
Diffstat (limited to 'lib/coderay/scanners/plaintext.rb')
-rw-r--r-- | lib/coderay/scanners/plaintext.rb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/coderay/scanners/plaintext.rb b/lib/coderay/scanners/plaintext.rb index f00aabb..b8db721 100644 --- a/lib/coderay/scanners/plaintext.rb +++ b/lib/coderay/scanners/plaintext.rb @@ -1,6 +1,11 @@ module CodeRay module Scanners - + + # Scanner for plain text. + # + # Yields just one token of the kind :plain. + # + # Alias: +plain+ class Plaintext < Scanner register_for :plaintext, :plain @@ -8,7 +13,9 @@ module Scanners include Streamable - KINDS_NOT_LOC = [:plain] + KINDS_NOT_LOC = [:plain] # :nodoc: + + protected def scan_tokens tokens, options tokens << [string, :plain] |