From 971e6861621518e49687e2521552067838401720 Mon Sep 17 00:00:00 2001 From: murphy Date: Fri, 26 Mar 2010 03:03:04 +0000 Subject: Cleanup of JSON Scanner. --- lib/coderay/scanners/plaintext.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'lib/coderay/scanners/plaintext.rb') 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] -- cgit v1.2.1