diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-20 15:50:06 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-11-20 15:50:06 +0000 |
commit | 4e3202d2a2c5c03428b756e06238651dffd6e369 (patch) | |
tree | cb8852ce18f5b684738a6c827059b9216225d420 /vendor/plugins/coderay-0.9.0/lib/coderay/encoders/debug.rb | |
parent | d73fb1fab89634b5e6d5aaf0ac012333c3db6c42 (diff) | |
download | redmine-4e3202d2a2c5c03428b756e06238651dffd6e369.tar.gz redmine-4e3202d2a2c5c03428b756e06238651dffd6e369.zip |
Reverts r3014 (CodeRay back to 0.7.6).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3079 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'vendor/plugins/coderay-0.9.0/lib/coderay/encoders/debug.rb')
-rw-r--r-- | vendor/plugins/coderay-0.9.0/lib/coderay/encoders/debug.rb | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/debug.rb b/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/debug.rb deleted file mode 100644 index a4b064833..000000000 --- a/vendor/plugins/coderay-0.9.0/lib/coderay/encoders/debug.rb +++ /dev/null @@ -1,49 +0,0 @@ -module CodeRay -module Encoders - - # = Debug Encoder - # - # Fast encoder producing simple debug output. - # - # It is readable and diff-able and is used for testing. - # - # You cannot fully restore the tokens information from the - # output, because consecutive :space tokens are merged. - # Use Tokens#dump for caching purposes. - class Debug < Encoder - - include Streamable - register_for :debug - - FILE_EXTENSION = 'raydebug' - - protected - def text_token text, kind - if kind == :space - text - else - text = text.gsub(/[)\\]/, '\\\\\0') # escape ) and \ - "#{kind}(#{text})" - end - end - - def open_token kind - "#{kind}<" - end - - def close_token kind - ">" - end - - def begin_line kind - "#{kind}[" - end - - def end_line kind - "]" - end - - end - -end -end |