diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 05:34:08 -0700 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-06-23 05:34:08 -0700 |
commit | d7f1669cdf1d48204f3e1b0078d467da448c31d2 (patch) | |
tree | 80a8c1ab927661743329f10cd1dd415f2a8bca0f /lib/coderay/scanners/diff.rb | |
parent | 1e330f16c21c45eff375ba3b12f966c76ba0b393 (diff) | |
parent | 56f4163e99689912c3797e5d3b2b97244ce65782 (diff) | |
download | coderay-d7f1669cdf1d48204f3e1b0078d467da448c31d2.tar.gz |
Merge pull request #144 from rubychan/fix-with-debug-lint
Fixes using DebugLint
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|$/) |