We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91d633 commit b256ecfCopy full SHA for b256ecf
lib/coderay/scanners/diff.rb
@@ -69,11 +69,8 @@ def scan_tokens encoder, options
69
next unless match = scan(/.+/)
70
encoder.text_token match, :plain
71
state = :added
72
- elsif match = scan(/\\ /)
73
- encoder.begin_line line_kind = :change
74
- encoder.text_token match, :change
75
- next unless match = scan(/.+/)
76
- encoder.text_token match, :plain
+ elsif match = scan(/\\ .*/)
+ encoder.text_token match, :comment
77
elsif match = scan(/@@(?>[^@\n]*)@@/)
78
content_scanner.state = :initial unless match?(/\n\+/)
79
content_scanner_entry_state = nil
0 commit comments