coderay 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -119,6 +119,7 @@ module CodeRay
119
119
  # 'sch' => :scheme,
120
120
  'sql' => :sql,
121
121
  # 'ss' => :scheme,
122
+ 'tmproj' => :xml,
122
123
  'xhtml' => :page,
123
124
  'xml' => :xml,
124
125
  'yaml' => :yaml,
@@ -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]
@@ -1,3 +1,3 @@
1
1
  module CodeRay
2
- VERSION = '1.0.2'
2
+ VERSION = '1.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: