Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clike comment pattern exec throwing error #363

Closed
shannonmoeller opened this issue Sep 8, 2014 · 2 comments
Closed

clike comment pattern exec throwing error #363

shannonmoeller opened this issue Sep 8, 2014 · 2 comments

Comments

@shannonmoeller
Copy link

The following 'comment' token definition is causing an error to be thrown in tokenloop on var match = pattern.exec(str);:

Prism.languages.clike = {
    'comment': [
        {
            pattern: /(^|[^\\])\/\*[\w\W]*?\*\//g,
            lookbehind: true
        },
        {
            pattern: /(^|[^\\:])\/\/.*?(\r?\n|$)/g,
            lookbehind: true
        }
    ]
@zeitgeist87
Copy link
Collaborator

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.

@shannonmoeller
Copy link
Author

That was the issue. Removed the plugin as a workaround. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants