diff options
author | murphy <murphy@rubychan.de> | 2010-03-31 21:22:43 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-03-31 21:22:43 +0000 |
commit | c6442f8df01aa0c8d55fa09a001744e1c6e425ae (patch) | |
tree | ee53b69c38dc54e350dbbb2f44bf7d2179b2eee4 /lib/coderay | |
parent | f6645377402a0e7687944d88a4366c9a20523553 (diff) | |
download | coderay-c6442f8df01aa0c8d55fa09a001744e1c6e425ae.tar.gz |
Diff scanner highlights unknown lines as :comment instead of :head.
Diffstat (limited to 'lib/coderay')
-rw-r--r-- | lib/coderay/scanners/diff.rb | 2 |
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' |