diff options
author | murphy <murphy@rubychan.de> | 2008-09-18 01:12:44 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2008-09-18 01:12:44 +0000 |
commit | 41acfacb91970c8fa4e8b34f35c718eb329a3733 (patch) | |
tree | f11afbc209873285165934749e47b74e6936f25f /lib/coderay/token_classes.rb | |
parent | e46b6cbe74db250d743e7f194bfc7514529a82cc (diff) | |
download | coderay-41acfacb91970c8fa4e8b34f35c718eb329a3733.tar.gz |
New: *CSS Scanner* (closes #29).
* Based on Stefan Walk's implementation, with fixes, enhancements and speedups.
* It seems to be fairly fast and highlights nicely.
* I added the styles for Ignis Draconis, S5, and YUI as example code for testing.
More changes:
* Added three new token classes, :important, :pseudo_class, and :value, along with CSS styles.
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 c352e48..9b5e83c 100755 --- a/lib/coderay/token_classes.rb +++ b/lib/coderay/token_classes.rb @@ -29,6 +29,7 @@ module CodeRay :function => 'fu', :global_variable => 'gv', :hex => 'hx', + :important => 'im', :include => 'ic', :inline => 'il', :inline_delimiter => 'idl', @@ -46,6 +47,7 @@ module CodeRay :pre_type => 'pt', :predefined => 'pd', :preprocessor => 'pp', + :pseudo_class => 'ps', :regexp => 'rx', :reserved => 'r', :shell => 'sh', @@ -56,6 +58,7 @@ module CodeRay :tag_special => 'ts', :type => 'ty', :variable => 'v', + :value => 'vl', :xml_text => 'xt', :ident => :NO_HIGHLIGHT, # 'id' |