diff options
author | murphy <murphy@rubychan.de> | 2011-04-17 14:03:02 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-04-17 14:03:02 +0000 |
commit | d8c9161dc174e364fc4a3e8e9df1d45262c5cc4a (patch) | |
tree | 0f079cd03bb4fb43c36ee5c161b210c7a9cbd189 /lib/coderay/encoders/html.rb | |
parent | 84bbaddb495a1657433106a85274424e5a56259e (diff) | |
download | coderay-d8c9161dc174e364fc4a3e8e9df1d45262c5cc4a.tar.gz |
renamed pre_* token kinds to predefined_*
Diffstat (limited to 'lib/coderay/encoders/html.rb')
-rw-r--r-- | lib/coderay/encoders/html.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/coderay/encoders/html.rb b/lib/coderay/encoders/html.rb index 4c5695d..d6dfb9e 100644 --- a/lib/coderay/encoders/html.rb +++ b/lib/coderay/encoders/html.rb @@ -136,13 +136,7 @@ module Encoders HTML_ESCAPE_PATTERN = /[\t"&><\0-\x8\xB-\x1f]/ TOKEN_KIND_TO_INFO = Hash.new do |h, kind| - h[kind] = - case kind - when :pre_constant # FIXME: rename to :predefined_constant - 'Predefined constant' - else - kind.to_s.gsub(/_/, ' ').gsub(/\b\w/) { $&.capitalize } - end + h[kind] = kind.to_s.gsub(/_/, ' ').gsub(/\b\w/) { $&.capitalize } end TRANSPARENT_TOKEN_KINDS = Set[ |