diff options
author | murphy <murphy@rubychan.de> | 2009-04-22 02:40:04 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-04-22 02:40:04 +0000 |
commit | 59b31ae8596f9606217b09d4e3f00dcf5aab8475 (patch) | |
tree | c1eaef9b3c98f48c449cd84a59c751528f7c45b5 /lib/coderay/token_classes.rb | |
parent | a40476dc4a91737182f78fe939e1d91bd644ea99 (diff) | |
download | coderay-59b31ae8596f9606217b09d4e3f00dcf5aab8475.tar.gz |
Improved Python scanner (issue #41).
* fixed numeric literals
* better Python 3 support
* bugfixes, optimizations
* added two more test files
Diffstat (limited to 'lib/coderay/token_classes.rb')
-rwxr-xr-x | lib/coderay/token_classes.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/coderay/token_classes.rb b/lib/coderay/token_classes.rb index c71705b..ad7e5c8 100755 --- a/lib/coderay/token_classes.rb +++ b/lib/coderay/token_classes.rb @@ -15,8 +15,10 @@ module CodeRay :class_variable => 'cv', :color => 'cr', :comment => 'c', + :complex => 'cm', :constant => 'co', :content => 'k', + :decorator => 'de', :definition => 'df', :delimiter => 'dl', :directive => 'di', @@ -31,6 +33,7 @@ module CodeRay :function => 'fu', :global_variable => 'gv', :hex => 'hx', + :imaginary => 'cm', :important => 'im', :include => 'ic', :inline => 'il', |