summaryrefslogtreecommitdiff
path: root/lib/coderay/token_classes.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-04-22 02:40:04 +0000
committermurphy <murphy@rubychan.de>2009-04-22 02:40:04 +0000
commit59b31ae8596f9606217b09d4e3f00dcf5aab8475 (patch)
treec1eaef9b3c98f48c449cd84a59c751528f7c45b5 /lib/coderay/token_classes.rb
parenta40476dc4a91737182f78fe939e1d91bd644ea99 (diff)
downloadcoderay-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-xlib/coderay/token_classes.rb3
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',