summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/html.rb
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-03-10 22:46:35 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-03-10 22:46:35 +0100
commit34e823d709ce19a480dbd78e72e63ada0d3425fb (patch)
treeec9ae8d35543c2b9834479ab7229333495e28c1b /lib/coderay/scanners/html.rb
parent0392439f9aaa5dde7734743ab5a88193257ec722 (diff)
parentfc16be24d48f8a729ac987149f98f19725943e0d (diff)
downloadcoderay-34e823d709ce19a480dbd78e72e63ada0d3425fb.tar.gz
Merge branch 'master' into lua-scanner
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