diff options
author | Nathan Youngman <git@nathany.com> | 2012-10-27 23:41:52 -0600 |
---|---|---|
committer | Nathan Youngman <git@nathany.com> | 2012-10-27 23:42:23 -0600 |
commit | 279348d3c2159df4ce6ac5949ada0177aa7c7159 (patch) | |
tree | e0ef2a73dc786397c698021fc8abba224e956409 /lib/coderay/token_kinds.rb | |
parent | 308fd388b4646ff77263f05634547c6f3cc3e895 (diff) | |
download | coderay-279348d3c2159df4ce6ac5949ada0177aa7c7159.tar.gz |
:map token kind
Use :map instead of :table. It's more generic, and won't be confused with the :table rendering style.
Diffstat (limited to 'lib/coderay/token_kinds.rb')
-rwxr-xr-x | lib/coderay/token_kinds.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/coderay/token_kinds.rb b/lib/coderay/token_kinds.rb index e245623..a0ad5e4 100755 --- a/lib/coderay/token_kinds.rb +++ b/lib/coderay/token_kinds.rb @@ -1,14 +1,14 @@ module CodeRay - + # A Hash of all known token kinds and their associated CSS classes. TokenKinds = Hash.new do |h, k| warn 'Undefined Token kind: %p' % [k] if $CODERAY_DEBUG false end - + # speedup TokenKinds.compare_by_identity if TokenKinds.respond_to? :compare_by_identity - + TokenKinds.update( # :nodoc: :annotation => 'annotation', :attribute_name => 'attribute-name', @@ -50,6 +50,7 @@ module CodeRay :keyword => 'keyword', :label => 'label', :local_variable => 'local-variable', + :map => 'map', :modifier => 'modifier', :namespace => 'namespace', :octal => 'octal', @@ -63,29 +64,28 @@ module CodeRay :shell => 'shell', :string => 'string', :symbol => 'symbol', - :table => 'table', :tag => 'tag', :type => 'type', :value => 'value', :variable => 'variable', - + :change => 'change', :delete => 'delete', :head => 'head', :insert => 'insert', - + :eyecatcher => 'eyecatcher', - + :ident => false, :operator => false, - + :space => false, :plain => false ) - + TokenKinds[:method] = TokenKinds[:function] TokenKinds[:escape] = TokenKinds[:delimiter] TokenKinds[:docstring] = TokenKinds[:comment] - + TokenKinds.freeze end |