coderay 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/coderay/helpers/file_type.rb +1 -0
- data/lib/coderay/scanners/diff.rb +1 -1
- data/lib/coderay/version.rb +1 -1
- metadata +1 -1
@@ -49,7 +49,7 @@ module Scanners
|
|
49
49
|
encoder.text_token match, :head
|
50
50
|
if match = scan(/.*?(?=$|[\t\n\x00]| \(revision)/)
|
51
51
|
encoder.text_token match, :filename
|
52
|
-
if options[:highlight_code]
|
52
|
+
if options[:highlight_code] && match != '/dev/null'
|
53
53
|
file_type = FileType.fetch(match, :text)
|
54
54
|
file_type = :text if file_type == :diff
|
55
55
|
content_scanner = scanners[file_type]
|
data/lib/coderay/version.rb
CHANGED