summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/sql.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-09-19 22:05:43 +0000
committermurphy <murphy@rubychan.de>2010-09-19 22:05:43 +0000
commitcc28e6b7af0890f59ddb1df98b2f15decebd791e (patch)
treec7d09fe9cffb138e6cdabff17efb5e5d03188672 /lib/coderay/scanners/sql.rb
parent5a0f656ed67c055ac30b66c5f31c5b13c924710f (diff)
downloadcoderay-cc28e6b7af0890f59ddb1df98b2f15decebd791e.tar.gz
Ported r661 (fix for SQL on Rubinius) to trunk.
Diffstat (limited to 'lib/coderay/scanners/sql.rb')
-rw-r--r--lib/coderay/scanners/sql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/sql.rb b/lib/coderay/scanners/sql.rb
index d62a2c3..effaa94 100644
--- a/lib/coderay/scanners/sql.rb
+++ b/lib/coderay/scanners/sql.rb
@@ -64,7 +64,7 @@ module CodeRay module Scanners
if match = scan(/ \s+ | \\\n /x)
encoder.text_token match, :space
- elsif match = scan(/^(?:--\s?|#).*/)
+ elsif match = scan(/(?:--\s?|#).*/)
encoder.text_token match, :comment
elsif match = scan(%r( /\* (!)? (?: .*? \*/ | .* ) )mx)