summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-02-17 21:40:48 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-02-17 21:40:48 +0100
commitd0b9a7cc6f78758a35b574f149c2fc3e9a2a8455 (patch)
tree3b93bec1c69de64728c16e3e4a7cd45ed587ab8d /lib/coderay/scanners
parent99e984d184f4b3875790e8ccdd12734e148bb60d (diff)
downloadcoderay-d0b9a7cc6f78758a35b574f149c2fc3e9a2a8455.tar.gz
fix #83 (XML DTD)
Diffstat (limited to 'lib/coderay/scanners')
-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 49c346d..3ba3b79 100644
--- a/lib/coderay/scanners/html.rb
+++ b/lib/coderay/scanners/html.rb
@@ -101,7 +101,7 @@ module Scanners
when :initial
if match = scan(/<!--(?:.*?-->|.*)/m)
encoder.text_token match, :comment
- elsif match = scan(/<!DOCTYPE(?:.*?>|.*)/m)
+ elsif match = scan(/<!(\w+)(?:.*?>|.*)|\]>/m)
encoder.text_token match, :doctype
elsif match = scan(/<\?xml(?:.*?\?>|.*)/m)
encoder.text_token match, :preprocessor