diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2011-12-27 04:08:29 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2011-12-27 04:08:29 +0100 |
commit | 2afe23ab0a3d17b50f55750241a682403ced4fc8 (patch) | |
tree | 19708f1d79ce22eed6b0e90de4760a8cfcc9504b /lib/coderay/scanners/diff.rb | |
parent | c044a7a6eaba9ba47b8fde2cd6bdd444d8f87062 (diff) | |
parent | 9c3837e0086ca07f241e9cc74c9fabbeb2d39987 (diff) | |
download | coderay-2afe23ab0a3d17b50f55750241a682403ced4fc8.tar.gz |
Merge branch 'master' into multiline-inline-diff
Conflicts:
coderay.gemspec
Diffstat (limited to 'lib/coderay/scanners/diff.rb')
-rw-r--r-- | lib/coderay/scanners/diff.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb index b890ed5..38efaf4 100644 --- a/lib/coderay/scanners/diff.rb +++ b/lib/coderay/scanners/diff.rb @@ -16,8 +16,6 @@ module Scanners protected - require 'coderay/helpers/file_type' - def scan_tokens encoder, options line_kind = nil @@ -50,7 +48,7 @@ module Scanners if match = scan(/.*?(?=$|[\t\n\x00]| \(revision)/) encoder.text_token match, :filename if options[:highlight_code] && match != '/dev/null' - file_type = FileType.fetch(match, :text) + file_type = CodeRay::FileType.fetch(match, :text) file_type = :text if file_type == :diff content_scanner = scanners[file_type] content_scanner_entry_state = nil |