From 41acfacb91970c8fa4e8b34f35c718eb329a3733 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 18 Sep 2008 01:12:44 +0000 Subject: 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. --- lib/coderay/token_classes.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/coderay/token_classes.rb') 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' -- cgit v1.2.1