From b5dd1ba683fb9eb0a74ab0b1f54fd9977e0ed3be Mon Sep 17 00:00:00 2001 From: murphy Date: Sun, 27 Jun 2010 02:49:23 +0000 Subject: More speedups for HTML encoding (numbering, CSS styles, Ruby 1.9). --- lib/coderay/token_kinds.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/coderay/token_kinds.rb') diff --git a/lib/coderay/token_kinds.rb b/lib/coderay/token_kinds.rb index e9e60cf..756f75e 100755 --- a/lib/coderay/token_kinds.rb +++ b/lib/coderay/token_kinds.rb @@ -4,7 +4,7 @@ module CodeRay if $CODERAY_DEBUG raise 'Undefined Token kind: %p' % [k] # :nodoc: else - :NO_HIGHLIGHT + false end end AbbreviationForKind.update with = { # :nodoc: @@ -74,11 +74,11 @@ module CodeRay :eyecatcher => 'eye', - :ident => :NO_HIGHLIGHT, # 'id' - #:operator => 'op', - :operator => :NO_HIGHLIGHT, # 'op' - :space => :NO_HIGHLIGHT, # 'sp' - :plain => :NO_HIGHLIGHT, + :ident => false, # 'id' + :operator => false, # 'op' + + :space => false, # 'sp' + :plain => false, } AbbreviationForKind[:method] = AbbreviationForKind[:function] AbbreviationForKind[:nesting_delimiter] = AbbreviationForKind[:delimiter] -- cgit v1.2.1