diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-08-30 17:11:54 +0200 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-08-30 17:11:54 +0200 |
commit | 3fc55739f9f4710f13c33ec1ea7e8046a20af611 (patch) | |
tree | 8ed60f88ce13c52e743ee5a5dd8c6a05e599e176 /lib/coderay/token_kinds.rb | |
parent | cc3185f6864ed2e8d537ec4100d7fcc4abc8f312 (diff) | |
parent | 718c0ac901eef189a1dad36f57a78f36d9d0ba11 (diff) | |
download | coderay-3fc55739f9f4710f13c33ec1ea7e8046a20af611.tar.gz |
Merge branch 'master' into ruby-skip
Diffstat (limited to 'lib/coderay/token_kinds.rb')
-rwxr-xr-x | lib/coderay/token_kinds.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/coderay/token_kinds.rb b/lib/coderay/token_kinds.rb index 9137a49..f911862 100755 --- a/lib/coderay/token_kinds.rb +++ b/lib/coderay/token_kinds.rb @@ -1,10 +1,7 @@ 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 + TokenKinds = Hash.new(false) # speedup TokenKinds.compare_by_identity if TokenKinds.respond_to? :compare_by_identity @@ -83,5 +80,6 @@ module CodeRay :plain => false # almost all scanners ) - TokenKinds[:method] = TokenKinds[:function] + TokenKinds[:method] = TokenKinds[:function] + TokenKinds[:unknown] = TokenKinds[:plain] end |