diff options
author | murphy <murphy@rubychan.de> | 2008-01-07 14:42:47 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-01-07 14:42:47 +0000 |
commit | e127b7d57b06554e708752bbbc2a85e833633c26 (patch) | |
tree | ccd44c344594ccacdcd95a1e1dfc35488cb2c58d /lib/coderay/encoder.rb | |
parent | bbbbc70a0b2efcd03bbcaf4e08ac139e7969e608 (diff) | |
download | coderay-e127b7d57b06554e708752bbbc2a85e833633c26.tar.gz |
Lib:
- Encoder: removed a warning
- Encoders::HTML: don't shadow outer variable
- Plugin: move require_plugin into class namespace
- Ruby Scanner:
- "alias" keyword recognition
- better regexp/division distinction
- recognize ~, !, !=, and !~ as method names (partly Ruby 1.9 only)
- reordered states for speed
Tests:
- updated coderay-suite to use gem instead of require_gem
- general improvements (more colors!, new parameter: new, new syntax lang.test for only and new)
- fixed ruby suite
- adjusted a lot of Ruby tests (alias uses methods now)
- new tests: ruby/operators, ruby/regexp
Samples:
- fixed/updated ('bout time)
Rake tasks:
- updated to use new rubygems API
Diffstat (limited to 'lib/coderay/encoder.rb')
-rw-r--r-- | lib/coderay/encoder.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/encoder.rb b/lib/coderay/encoder.rb index e543c8c..ced0f6c 100644 --- a/lib/coderay/encoder.rb +++ b/lib/coderay/encoder.rb @@ -140,7 +140,7 @@ module CodeRay else raise 'Unknown token text type: %p' % text end - @out << out if @out + @out << out if defined?(@out) && @out end def text_token text, kind |