summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/diff.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/diff.rb')
-rw-r--r--lib/coderay/scanners/diff.rb7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb
index 34eb158..fd70016 100644
--- a/lib/coderay/scanners/diff.rb
+++ b/lib/coderay/scanners/diff.rb
@@ -69,11 +69,8 @@ module Scanners
next unless match = scan(/.+/)
encoder.text_token match, :plain
state = :added
- elsif match = scan(/\\ /)
- encoder.begin_line line_kind = :change
- encoder.text_token match, :change
- next unless match = scan(/.+/)
- encoder.text_token match, :plain
+ elsif match = scan(/\\ .*/)
+ encoder.text_token match, :comment
elsif match = scan(/@@(?>[^@\n]*)@@/)
content_scanner.state = :initial unless match?(/\n\+/)
content_scanner_entry_state = nil