Closed shannonmoeller closed 10 years ago
The following 'comment' token definition is causing an error to be thrown in tokenloop on var match = pattern.exec(str);:
'comment'
tokenloop
var match = pattern.exec(str);
Prism.languages.clike = { 'comment': [ { pattern: /(^|[^\\])\/\*[\w\W]*?\*\//g, lookbehind: true }, { pattern: /(^|[^\\:])\/\/.*?(\r?\n|$)/g, lookbehind: true } ]
Are you using the autolinker plugin? If so this could be related to #359. I already submitted a PR with a fix for that bug in #360.
That was the issue. Removed the plugin as a workaround. Thanks!
The following
'comment'
token definition is causing an error to be thrown intokenloop
onvar match = pattern.exec(str);
: