From c9eac585f167788dd590db06776b132923455a93 Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 1 Jan 2009 03:19:28 +0000 Subject: Completed YAML Scanner (closes #34). YAML Scanner: * Added another example (multiline). * Added multiline string recognition. * This should be enough for most people. Else: * New method: Scanner#column (very useful and fast!) * Added new token type :doctype, used also by HTML scanner. * coderay_suite: minor output tweaks. --- lib/coderay/scanners/html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/html.rb') diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb index bb7ad3a..1f4d8fe 100644 --- a/lib/coderay/scanners/html.rb +++ b/lib/coderay/scanners/html.rb @@ -63,7 +63,7 @@ module Scanners if scan(//m) kind = :comment elsif scan(//m) - kind = :preprocessor + kind = :doctype elsif scan(/<\?xml.*?\?>/m) kind = :preprocessor elsif scan(/<\?.*?\?>|<%.*?%>/m) -- cgit v1.2.1