From e127b7d57b06554e708752bbbc2a85e833633c26 Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 7 Jan 2008 14:42:47 +0000 Subject: Lib: - Encoder: removed a warning - Encoders::HTML: don't shadow outer variable - Plugin: move require_plugin into class namespace - Ruby Scanner: - "alias" keyword recognition - better regexp/division distinction - recognize ~, !, !=, and !~ as method names (partly Ruby 1.9 only) - reordered states for speed Tests: - updated coderay-suite to use gem instead of require_gem - general improvements (more colors!, new parameter: new, new syntax lang.test for only and new) - fixed ruby suite - adjusted a lot of Ruby tests (alias uses methods now) - new tests: ruby/operators, ruby/regexp Samples: - fixed/updated ('bout time) Rake tasks: - updated to use new rubygems API --- sample/html2.expected | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'sample/html2.expected') diff --git a/sample/html2.expected b/sample/html2.expected index ead61b2..e276d3e 100644 --- a/sample/html2.expected +++ b/sample/html2.expected @@ -34,12 +34,14 @@ ol.CodeRay li { white-space: pre } .CodeRay .code pre { overflow: auto } +.CodeRay .debug { color:white ! important; background:blue ! important; } + .CodeRay .af { color:#00C } .CodeRay .an { color:#007 } .CodeRay .av { color:#700 } .CodeRay .aw { color:#C00 } .CodeRay .bi { color:#509; font-weight:bold } -.CodeRay .c { color:#888 } +.CodeRay .c { color:#666; } .CodeRay .ch { color:#04D } .CodeRay .ch .k { color:#04D } @@ -68,14 +70,14 @@ ol.CodeRay li { white-space: pre } .CodeRay .il { background: #eee } .CodeRay .il .il { background: #ddd } .CodeRay .il .il .il { background: #ccc } -.CodeRay .il .dl { font-weight: bold ! important; color: #888 ! important } +.CodeRay .il .idl { font-weight: bold; color: #888 } .CodeRay .in { color:#B2B; font-weight:bold } .CodeRay .iv { color:#33B } .CodeRay .la { color:#970; font-weight:bold } .CodeRay .lv { color:#963 } .CodeRay .oc { color:#40E; font-weight:bold } -.CodeRay .on { color:#000; font-weight:bold } +.CodeRay .of { color:#000; font-weight:bold } .CodeRay .op { } .CodeRay .pc { color:#038; font-weight:bold } .CodeRay .pd { color:#369; font-weight:bold } @@ -129,10 +131,10 @@ ol.CodeRay li { white-space: pre }
require 'coderay'
 
-# scan this file
+# scan this file
 tokens = CodeRay.scan(File.read($0) * 1, :ruby)
 
-# output it with two styles of line numbers
+# output it with two styles of line numbers
 out = tokens.div(:line_numbers => :table)
 out << '<hr />'
 out << tokens.div(:line_numbers => :inline, :line_number_start => 8)
@@ -143,10 +145,10 @@ ol.CodeRay li { white-space: pre }
 
 8 require 'coderay'
  9 
-10 # scan this file
+10 # scan this file
 11 tokens = CodeRay.scan(File.read($0) * 1, :ruby)
 12 
-13 # output it with two styles of line numbers
+13 # output it with two styles of line numbers
 14 out = tokens.div(:line_numbers => :table)
 15 out << '<hr />'
 16 out << tokens.div(:line_numbers => :inline, :line_number_start => 8)
-- 
cgit v1.2.1