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

JS syntax highlighting issue with a string containing /* followed by single line comments #2394

Closed
loreanvictor opened this issue May 19, 2020 · 2 comments
Labels

Comments

@loreanvictor
Copy link

Information:

  • Prism version: 1.20.0
  • Environment: Browser, Node, Webpack

Description
In a Javascript code snippet, if a string containing /* is followed by two (or more) single-line comments, only the first single line comment is recognized as a comment. The issue does
not exist with multi-line comments or strings not containing /*.

Example
https://stackblitz.com/edit/prismjs-bug

@RunDevelopment
Copy link
Member

This is caused by #1492.

@RunDevelopment
Copy link
Member

Fixed by #2032.

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

No branches or pull requests

2 participants