Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Unified Diff: lib/src/prism/components/prism-markup.js

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/prism/components/prism-markdown.min.js ('k') | lib/src/prism/components/prism-markup.min.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/prism/components/prism-markup.js
diff --git a/lib/src/prism/components/prism-markup.js b/lib/src/prism/components/prism-markup.js
index f3abdf28b50f15bc068a10c52b375de2a81ec0cf..06f24c2f6b12a486fa6e4309b2dc7cdcbe803ec3 100644
--- a/lib/src/prism/components/prism-markup.js
+++ b/lib/src/prism/components/prism-markup.js
@@ -4,7 +4,7 @@ Prism.languages.markup = {
'doctype': /<!DOCTYPE[\w\W]+?>/,
'cdata': /<!\[CDATA\[[\w\W]*?]]>/i,
'tag': {
- pattern: /<\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
+ pattern: /<\/?[^\s>\/=.]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\\1|\\?(?!\1)[\w\W])*\1|[^\s'">=]+))?)*\s*\/?>/i,
inside: {
'tag': {
pattern: /^<\/?[^\s>\/]+/i,
@@ -39,3 +39,8 @@ Prism.hooks.add('wrap', function(env) {
env.attributes['title'] = env.content.replace(/&amp;/, '&');
}
});
+
+Prism.languages.xml = Prism.languages.markup;
+Prism.languages.html = Prism.languages.markup;
+Prism.languages.mathml = Prism.languages.markup;
+Prism.languages.svg = Prism.languages.markup;
« no previous file with comments | « lib/src/prism/components/prism-markdown.min.js ('k') | lib/src/prism/components/prism-markup.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698