From ff966c0079404c285925bab3900a74ad9f60058f Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Wed, 26 Oct 2011 13:38:19 +0200 Subject: minor fix in diff scanner, .tmproj filetype: 1.0.3 --- lib/coderay/scanners/diff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/diff.rb') diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb index fd70016..52e23d5 100644 --- a/lib/coderay/scanners/diff.rb +++ b/lib/coderay/scanners/diff.rb @@ -49,7 +49,7 @@ module Scanners encoder.text_token match, :head if match = scan(/.*?(?=$|[\t\n\x00]| \(revision)/) encoder.text_token match, :filename - if options[:highlight_code] + if options[:highlight_code] && match != '/dev/null' file_type = FileType.fetch(match, :text) file_type = :text if file_type == :diff content_scanner = scanners[file_type] -- cgit v1.2.1