diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 14:35:17 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 14:35:17 +0200 |
commit | 9651f0b464b6540a1427ea8320abaa01caf197b3 (patch) | |
tree | 184c42f0fe01ddce26b7d4cc42c124b695a20b3e /lib/coderay/scanners/diff.rb | |
parent | 14f3a4f28341237503a51bfa0764c922bb02bdfa (diff) | |
parent | d7f1669cdf1d48204f3e1b0078d467da448c31d2 (diff) | |
download | coderay-9651f0b464b6540a1427ea8320abaa01caf197b3.tar.gz |
Merge branch 'master' into upstream
Diffstat (limited to 'lib/coderay/scanners/diff.rb')
-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 af0f755..fd1aed6 100644 --- a/lib/coderay/scanners/diff.rb +++ b/lib/coderay/scanners/diff.rb @@ -69,7 +69,7 @@ module Scanners state = :added elsif match = scan(/\\ .*/) encoder.text_token match, :comment - elsif match = scan(/@@(?>[^@\n]*)@@/) + elsif match = scan(/@@(?>[^@\n]+)@@/) content_scanner.state = :initial unless match?(/\n\+/) content_scanner_entry_state = nil if check(/\n|$/) |