summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/html.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-01-01 03:19:28 +0000
committermurphy <murphy@rubychan.de>2009-01-01 03:19:28 +0000
commitc9eac585f167788dd590db06776b132923455a93 (patch)
treee4f8ade4d74b66fba6062f9d7be20c9454d777fc /lib/coderay/scanners/html.rb
parentb9c0dd7c02467e633e195ef97e0f4748e588e799 (diff)
downloadcoderay-c9eac585f167788dd590db06776b132923455a93.tar.gz
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.
Diffstat (limited to 'lib/coderay/scanners/html.rb')
-rw-r--r--lib/coderay/scanners/html.rb2
1 files changed, 1 insertions, 1 deletions
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(/<!DOCTYPE.*?>/m)
- kind = :preprocessor
+ kind = :doctype
elsif scan(/<\?xml.*?\?>/m)
kind = :preprocessor
elsif scan(/<\?.*?\?>|<%.*?%>/m)