Automattic / Automattic/syntaxhighlighter

Valid JavaScript syntax not being parsed correct

Open
#220 1 comment 0 reactions 0 assignees View on GitHub
[Pri] Normal [Type] Bug
Dominant language
CSS
Stars
251
Forks
81
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/2140288/139432399-8068e26d-3fb6-49ca-8c9f-cfc9cf010c80.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the break on the linked page and isolating the JavaScript code block around line 26. Locate the JavaScript syntax-highlighting entry point and any related tests, then verify that the complete valid snippet is highlighted consistently without regressing existing syntax handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.