File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,6 @@ class Diff < Scanner
16
16
17
17
protected
18
18
19
- require 'coderay/helpers/file_type'
20
-
21
19
def scan_tokens encoder , options
22
20
23
21
line_kind = nil
@@ -50,7 +48,7 @@ def scan_tokens encoder, options
50
48
if match = scan ( /.*?(?=$|[\t \n \x00 ]| \( revision)/ )
51
49
encoder . text_token match , :filename
52
50
if options [ :highlight_code ] && match != '/dev/null'
53
- file_type = FileType . fetch ( match , :text )
51
+ file_type = CodeRay :: FileType . fetch ( match , :text )
54
52
file_type = :text if file_type == :diff
55
53
content_scanner = scanners [ file_type ]
56
54
content_scanner_entry_state = nil
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ def test_examples
97
97
DIV
98
98
99
99
# highlight a file (HTML div); guess the file type base on the extension
100
- require 'coderay/helpers/file_type'
101
100
assert_equal :ruby , CodeRay ::FileType [ __FILE__ ]
102
101
103
102
# get a new scanner for Python
You can’t perform that action at this time.
0 commit comments