summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/diff.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2014-01-23 22:23:59 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2014-01-23 22:23:59 +0100
commitee76cc5df42af385743d81ec0810073b7c9ed465 (patch)
tree89387c694298768c2ea4766eff097cdd5006fbdf /lib/coderay/scanners/diff.rb
parent4131a5ff622e7c767dfd042c4c357906a2544c01 (diff)
parente93aae88985667189bb5b24ad0d5f54cb5fdba70 (diff)
downloadcoderay-ee76cc5df42af385743d81ec0810073b7c9ed465.tar.gz
Merge branch 'master' into bash-scanner
Conflicts: lib/coderay/helpers/file_type.rb
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 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|$/)