diff options
author | murphy <murphy@rubychan.de> | 2010-09-19 22:05:43 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-09-19 22:05:43 +0000 |
commit | cc28e6b7af0890f59ddb1df98b2f15decebd791e (patch) | |
tree | c7d09fe9cffb138e6cdabff17efb5e5d03188672 /lib/coderay | |
parent | 5a0f656ed67c055ac30b66c5f31c5b13c924710f (diff) | |
download | coderay-cc28e6b7af0890f59ddb1df98b2f15decebd791e.tar.gz |
Ported r661 (fix for SQL on Rubinius) to trunk.
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/sql.rb | 2 |
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) |