Skip to content

Commit

Permalink
LaTeX: Simplify comment regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Aug 26, 2015
1 parent 74e01eb commit 132b41a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/prism-latex.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Prism.languages.latex = {
'comment': /%.*?(\r?\n|$)$/m,
'comment': /%.*/m,
'string': /(\$)(\\?.)*?\1/,
'punctuation': /[{}]/,
'selector': /\\[a-z;,:\.]*/i
Expand Down
2 changes: 1 addition & 1 deletion components/prism-latex.min.js
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Prism.languages.latex={comment:/%.*?(\r?\n|$)$/m,string:/(\$)(\\?.)*?\1/,punctuation:/[{}]/,selector:/\\[a-z;,:\.]*/i};
Prism.languages.latex={comment:/%.*/m,string:/(\$)(\\?.)*?\1/,punctuation:/[{}]/,selector:/\\[a-z;,:\.]*/i};

0 comments on commit 132b41a

Please sign in to comment.