diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-03-10 21:44:53 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-03-10 21:44:53 +0100 |
commit | af0d7d807c87097346584d06b7be59b5c5e656e2 (patch) | |
tree | 64b3eec10c23c920699115369c1ad01e74769537 /lib/coderay/scanners/html.rb | |
parent | 46fc5486cde5cf1816cba945eb74eff5a8228aa7 (diff) | |
parent | 3d7f34571a0b2e58ee90498bc54f160bda2bed45 (diff) | |
download | coderay-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.rb | 2 |
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 |