From cc28e6b7af0890f59ddb1df98b2f15decebd791e Mon Sep 17 00:00:00 2001 From: murphy Date: Sun, 19 Sep 2010 22:05:43 +0000 Subject: Ported r661 (fix for SQL on Rubinius) to trunk. --- lib/coderay/scanners/sql.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/sql.rb') 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) -- cgit v1.2.1