Skip to content

Commit

Permalink
Markup: doctype and prolog can be multi-line.
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Jul 8, 2015
1 parent 1ebcb8e commit c19a238
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions 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': /<\?.+?\?>/,
'doctype': /<!DOCTYPE.+?>/,
'prolog': /<\?[\w\W]+?\?>/,
'doctype': /<!DOCTYPE[\w\W]+?>/,
'cdata': /<!\[CDATA\[[\w\W]*?]]>/i,
'tag': {
pattern: /<\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
Expand Down
2 changes: 1 addition & 1 deletion components/prism-markup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions prism.js
Original file line number Diff line number Diff line change
Expand Up @@ -437,8 +437,8 @@ if (typeof module !== 'undefined' && module.exports) {

Prism.languages.markup = {
'comment': /<!--[\w\W]*?-->/,
'prolog': /<\?.+?\?>/,
'doctype': /<!DOCTYPE.+?>/,
'prolog': /<\?[\w\W]+?\?>/,
'doctype': /<!DOCTYPE[\w\W]+?>/,
'cdata': /<!\[CDATA\[[\w\W]*?]]>/i,
'tag': {
pattern: /<\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
Expand Down

0 comments on commit c19a238

Please sign in to comment.