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

Side by Side Diff: lib/src/prism/components/prism-latex.min.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, 1 month 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 unified diff | Download patch
« no previous file with comments | « lib/src/prism/components/prism-latex.js ('k') | lib/src/prism/components/prism-less.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Prism.languages.latex={comment:/%.*?(\r?\n|$)$/m,string:/(\$)(\\?.)*?\1/,punctua tion:/[{}]/,selector:/\\[a-z;,:\.]*/i}; 1 !function(a){var e=/\\([^a-z()[\]]|[a-z\*]+)/i,n={"equation-command":{pattern:e, alias:"regex"}};a.languages.latex={comment:/%.*/m,cdata:{pattern:/(\\begin\{((?: verbatim|lstlisting)\*?)\})([\w\W]*?)(?=\\end\{\2\})/,lookbehind:!0},equation:[{ pattern:/\$(?:\\?[\w\W])*?\$|\\\((?:\\?[\w\W])*?\\\)|\\\[(?:\\?[\w\W])*?\\\]/,in side:n,alias:"string"},{pattern:/(\\begin\{((?:equation|math|eqnarray|align|mult line|gather)\*?)\})([\w\W]*?)(?=\\end\{\2\})/,lookbehind:!0,inside:n,alias:"stri ng"}],keyword:{pattern:/(\\(?:begin|end|ref|cite|label|usepackage|documentclass) (?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\}) /,lookbehind:!0},headline:{pattern:/(\\(?:part|chapter|section|subsection|framet itle|subsubsection|paragraph|subparagraph|subsubparagraph|subsubsubparagraph)\*? (?:\[[^\]]+\])?\{)[^}]+(?=\}(?:\[[^\]]+\])?)/,lookbehind:!0,alias:"class-name"}, "function":{pattern:e,alias:"selector"},punctuation:/[[\]{}&]/}}(Prism);
OLDNEW
« no previous file with comments | « lib/src/prism/components/prism-latex.js ('k') | lib/src/prism/components/prism-less.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698