Skip to content

Commit

Permalink
Make doctype case insensetive (#1009)
Browse files Browse the repository at this point in the history
  • Loading branch information
valtlai authored and LeaVerou committed Aug 5, 2016
1 parent b2fa6d5 commit 3dd7219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/prism-markup.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Prism.languages.markup = {
'comment': /<!--[\w\W]*?-->/,
'prolog': /<\?[\w\W]+?\?>/,
'doctype': /<!DOCTYPE[\w\W]+?>/,
'doctype': /<!DOCTYPE[\w\W]+?>/i,
'cdata': /<!\[CDATA\[[\w\W]*?]]>/i,
'tag': {
pattern: /<\/?(?!\d)[^\s>\/=$<]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
Expand Down

0 comments on commit 3dd7219

Please sign in to comment.