summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/diff.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-07-20 18:12:04 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2013-07-20 18:12:04 +0200
commit5c23a731ca55729fc65630eca3b37a5b1a71e5b1 (patch)
tree97045ac6fa9544a1e0f168b9a02c7b53b0c4e452 /lib/coderay/scanners/diff.rb
parent59ca07b0d1a1710ab729636ea00de4b638f56110 (diff)
downloadcoderay-5c23a731ca55729fc65630eca3b37a5b1a71e5b1.tar.gz
mark possibly problematic spots with FIXME
Diffstat (limited to 'lib/coderay/scanners/diff.rb')
-rw-r--r--lib/coderay/scanners/diff.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/coderay/scanners/diff.rb b/lib/coderay/scanners/diff.rb
index fd1aed6..836fa41 100644
--- a/lib/coderay/scanners/diff.rb
+++ b/lib/coderay/scanners/diff.rb
@@ -21,6 +21,7 @@ module Scanners
line_kind = nil
state = :initial
deleted_lines_count = 0
+ # FIXME: cache attack
scanners = Hash.new do |h, lang|
h[lang] = Scanners[lang].new '', :keep_tokens => true, :keep_state => true
end