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

Valid JavaScript syntax not being parsed correct #220

Open
gaurav1984 opened this issue Oct 29, 2021 · 1 comment
Open

Valid JavaScript syntax not being parsed correct #220

gaurav1984 opened this issue Oct 29, 2021 · 1 comment

Comments

@gaurav1984
Copy link

Reported here https://wordpress.org/support/topic/valid-javascript-syntax-not-being-parsed-correct

On the code block on this page ( https://netsuite.smash-ict.com/learn-how-to-generate-meaningful-amortization-journal-entry-memo-lines/) , the Javascript syntax highlighting breaks from line 26 for no obvious reason.

Screenshot / Video

Markup on 2021-10-29 at 17:43:36

@aaronfc
Copy link
Contributor

aaronfc commented Feb 18, 2022

This can be reproduced with latest version of SyntaxHighlighter and using the following snippet using JavaScript syntax:

// This is a comment with a ' single quote
const CONSTANT = 'Any string between single quotes';
log.debug('Other single quotes string');

image

Looks like it has to do with a preceding comment containing a single quote followed by two strings defined by single quotes.

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

No branches or pull requests

2 participants