summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/sql.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-06-23 05:34:08 -0700
committerKornelius Kalnbach <murphy@rubychan.de>2013-06-23 05:34:08 -0700
commitd7f1669cdf1d48204f3e1b0078d467da448c31d2 (patch)
tree80a8c1ab927661743329f10cd1dd415f2a8bca0f /lib/coderay/scanners/sql.rb
parent1e330f16c21c45eff375ba3b12f966c76ba0b393 (diff)
parent56f4163e99689912c3797e5d3b2b97244ce65782 (diff)
downloadcoderay-d7f1669cdf1d48204f3e1b0078d467da448c31d2.tar.gz
Merge pull request #144 from rubychan/fix-with-debug-lint
Fixes using DebugLint
Diffstat (limited to 'lib/coderay/scanners/sql.rb')
-rw-r--r--lib/coderay/scanners/sql.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/coderay/scanners/sql.rb b/lib/coderay/scanners/sql.rb
index b757278..93aeaf3 100644
--- a/lib/coderay/scanners/sql.rb
+++ b/lib/coderay/scanners/sql.rb
@@ -1,8 +1,9 @@
-module CodeRay module Scanners
+module CodeRay
+module Scanners
# by Josh Goebel
class SQL < Scanner
-
+
register_for :sql
KEYWORDS = %w(
@@ -149,6 +150,7 @@ module CodeRay module Scanners
string_content = ''
end
encoder.text_token match, :error unless match.empty?
+ encoder.end_group :string
state = :initial
else
raise "else case \" reached; %p not handled." % peek(1), encoder
@@ -171,4 +173,5 @@ module CodeRay module Scanners
end
-end end \ No newline at end of file
+end
+end