summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/plaintext.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-10-19 17:34:39 +0000
committermurphy <murphy@rubychan.de>2009-10-19 17:34:39 +0000
commit9eba0c7decb383e3ef73a3fee375e725442cde56 (patch)
tree0e88e051c045bb2a7c5db6020024d8c47466676f /lib/coderay/scanners/plaintext.rb
parenteada01e24c1402c6e390579d60ca174f15e74f6b (diff)
downloadcoderay-9eba0c7decb383e3ef73a3fee375e725442cde56.tar.gz
Updating scanners: Ruby 1.9 warnings, KINDS_NOT_LOC
* Also, DATABASE is a SQL keyword.
Diffstat (limited to 'lib/coderay/scanners/plaintext.rb')
-rw-r--r--lib/coderay/scanners/plaintext.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/coderay/scanners/plaintext.rb b/lib/coderay/scanners/plaintext.rb
index a362f0b..6cbb119 100644
--- a/lib/coderay/scanners/plaintext.rb
+++ b/lib/coderay/scanners/plaintext.rb
@@ -7,7 +7,9 @@ module Scanners
title 'Plain text'
include Streamable
-
+
+ KINDS_NOT_LOC = [:plain]
+
def scan_tokens tokens, options
text = (scan_until(/\z/) || '')
tokens << [text, :plain]