diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-20 18:12:04 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-07-20 18:12:04 +0200 |
commit | 5c23a731ca55729fc65630eca3b37a5b1a71e5b1 (patch) | |
tree | 97045ac6fa9544a1e0f168b9a02c7b53b0c4e452 /lib/coderay/scanners/debug.rb | |
parent | 59ca07b0d1a1710ab729636ea00de4b638f56110 (diff) | |
download | coderay-5c23a731ca55729fc65630eca3b37a5b1a71e5b1.tar.gz |
mark possibly problematic spots with FIXME
Diffstat (limited to 'lib/coderay/scanners/debug.rb')
-rw-r--r-- | lib/coderay/scanners/debug.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/coderay/scanners/debug.rb b/lib/coderay/scanners/debug.rb index 566bfa7..9d10864 100644 --- a/lib/coderay/scanners/debug.rb +++ b/lib/coderay/scanners/debug.rb @@ -21,6 +21,7 @@ module Scanners encoder.text_token match, :space elsif match = scan(/ (\w+) \( ( [^\)\\]* ( \\. [^\)\\]* )* ) \)? /x) + # FIXME: cache attack kind = self[1].to_sym match = self[2].gsub(/\\(.)/m, '\1') unless TokenKinds.has_key? kind @@ -30,6 +31,7 @@ module Scanners encoder.text_token match, kind elsif match = scan(/ (\w+) ([<\[]) /x) + # FIXME: cache attack kind = self[1].to_sym opened_tokens << kind case self[2] |