summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/diff.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-03-31 21:22:43 +0000
committermurphy <murphy@rubychan.de>2010-03-31 21:22:43 +0000
commitc6442f8df01aa0c8d55fa09a001744e1c6e425ae (patch)
treeee53b69c38dc54e350dbbb2f44bf7d2179b2eee4 /lib/coderay/scanners/diff.rb
parentf6645377402a0e7687944d88a4366c9a20523553 (diff)
downloadcoderay-c6442f8df01aa0c8d55fa09a001744e1c6e425ae.tar.gz
Diff scanner highlights unknown lines as :comment instead of :head.
Diffstat (limited to 'lib/coderay/scanners/diff.rb')
-rw-r--r--lib/coderay/scanners/diff.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb
index 6ba50ef..4f3ff2e 100644
--- a/lib/coderay/scanners/diff.rb
+++ b/lib/coderay/scanners/diff.rb
@@ -89,7 +89,7 @@ module Scanners
CodeRay.scan code, content_lang, :tokens => tokens
next
elsif scan(/.+/)
- tokens << [:begin_line, line_kind = :head]
+ tokens << [:begin_line, line_kind = :comment]
kind = :plain
else
raise_inspect 'else case rached'