Skip to content

Commit 132b41a

Browse files
committed
LaTeX: Simplify comment regexp
1 parent 74e01eb commit 132b41a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/prism-latex.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Prism.languages.latex = {
2-
'comment': /%.*?(\r?\n|$)$/m,
2+
'comment': /%.*/m,
33
'string': /(\$)(\\?.)*?\1/,
44
'punctuation': /[{}]/,
55
'selector': /\\[a-z;,:\.]*/i

components/prism-latex.min.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Prism.languages.latex={comment:/%.*?(\r?\n|$)$/m,string:/(\$)(\\?.)*?\1/,punctuation:/[{}]/,selector:/\\[a-z;,:\.]*/i};
1+
Prism.languages.latex={comment:/%.*/m,string:/(\$)(\\?.)*?\1/,punctuation:/[{}]/,selector:/\\[a-z;,:\.]*/i};

0 commit comments

Comments
 (0)