diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2011-08-19 03:09:35 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2011-08-19 03:09:35 +0200 |
commit | 75bc5455af8c3c3381066aac3d5fff42264cac6f (patch) | |
tree | 589d2c912ddd94c517eb794bcdf3257f8348f3c0 /lib/coderay.rb | |
parent | fdd17b6a09efb275238a3baef275465d31452f2a (diff) | |
download | coderay-75bc5455af8c3c3381066aac3d5fff42264cac6f.tar.gz |
Major rewrite of encoders to support IO output; fixed some minor scanner bugs; cleanups; dropped NitroXHTML scanner; improved tests
Diffstat (limited to 'lib/coderay.rb')
-rw-r--r-- | lib/coderay.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/coderay.rb b/lib/coderay.rb index d2d7331..9779ff5 100644 --- a/lib/coderay.rb +++ b/lib/coderay.rb @@ -158,6 +158,7 @@ module CodeRay # # See also demo/demo_simple. def scan code, lang, options = {}, &block + # FIXME: return a proxy for direct-stream encoding scanner = Scanners[lang].new code, options, &block scanner.tokenize end @@ -187,7 +188,7 @@ module CodeRay # encodes it with the Encoder for +format+. # +options+ will be passed to the Encoder. # - # See CodeRay::Encoder.encode + # See CodeRay::Encoder.encode. def encode code, lang, format, options = {} encoder(format, options).encode code, lang, options end |