summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/html.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-03-10 21:44:53 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-03-10 21:44:53 +0100
commitaf0d7d807c87097346584d06b7be59b5c5e656e2 (patch)
tree64b3eec10c23c920699115369c1ad01e74769537 /lib/coderay/scanners/html.rb
parent46fc5486cde5cf1816cba945eb74eff5a8228aa7 (diff)
parent3d7f34571a0b2e58ee90498bc54f160bda2bed45 (diff)
downloadcoderay-af0d7d807c87097346584d06b7be59b5c5e656e2.tar.gz
Merge branch 'master' into multiline-inline-diff
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 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