We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603ff7d commit 253a616Copy full SHA for 253a616
lib/coderay/scanners/sql.rb
@@ -1,8 +1,9 @@
1
-module CodeRay module Scanners
+module CodeRay
2
+module Scanners
3
4
# by Josh Goebel
5
class SQL < Scanner
-
6
+
7
register_for :sql
8
9
KEYWORDS = %w(
@@ -149,6 +150,7 @@ def scan_tokens encoder, options
149
150
string_content = ''
151
end
152
encoder.text_token match, :error unless match.empty?
153
+ encoder.end_group :string
154
state = :initial
155
else
156
raise "else case \" reached; %p not handled." % peek(1), encoder
@@ -171,4 +173,5 @@ def scan_tokens encoder, options
171
173
172
174
175
-end end
176
+end
177
0 commit comments