From e46b6cbe74db250d743e7f194bfc7514529a82cc Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 16 Sep 2008 22:07:44 +0000 Subject: New: *JavaScript Scanner* (closes #23). * It's quite good and fast, but still a beta. * I included Prototype and script.aculo.us as example code for testing. More changes: * Added two new token classes, :keyword and :key, along with CSS styles. ** Actually, we should use :keyword for most scanners that now use :reserved. * HTML Encoder: The CSS parser understands multiple selectors separated by commas. --- lib/coderay/styles/murphy.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/coderay/styles/murphy.rb') diff --git a/lib/coderay/styles/murphy.rb b/lib/coderay/styles/murphy.rb index b42f0e0..15faadb 100644 --- a/lib/coderay/styles/murphy.rb +++ b/lib/coderay/styles/murphy.rb @@ -84,6 +84,9 @@ ol.CodeRay li { white-space: pre; } .pp { color:#579; } .pt { color:#66f; font-weight:bold; } .r { color:#5de; font-weight:bold; } +.r, .kw { color:#5de; font-weight:bold } + +.ke { color: #808; } .rx { background-color:#221133; } .rx .k { color:#f8f; } -- cgit v1.2.1