Skip to content

Commit 2f9672a

Browse files
Coq: Improved attribute pattern performance (#3085)
1 parent 233415b commit 2f9672a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/prism-coq.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
'attribute': [
1818
{
1919
pattern: RegExp(
20-
/#\[(?:[^\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source
20+
/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source
2121
.replace(/<comment>/g, function () { return commentSource; })
2222
),
2323
greedy: true,

components/prism-coq.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)