Skip to content

Commit 7a554b5

Browse files
authoredApr 16, 2020
Fixed several cases of exponential backtracking (#2268)
1 parent 8704cdf commit 7a554b5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+122
-100
lines changed
 

‎components/prism-antlr4.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Prism.languages.antlr4 = {
3131
}
3232
},
3333
'command': {
34-
pattern: /(->\s*)(?:\s*(?:,\s*)?[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,
34+
pattern: /(->\s*)(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,
3535
lookbehind: true,
3636
inside: {
3737
'function': /\b\w+(?=\s*(?:[,(]|$))/,

‎components/prism-antlr4.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)