New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 850259 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Last visit 28 days ago
Closed: Dec 19
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Syntx highlighting is broken when single quotes are used inside ES2015 Template Literals

Reported by h...@vitaler.co, Jun 6 2018

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.62 Safari/537.36

Steps to reproduce the problem:
1. Write some Javascript containing a template literal that contains a single quotes around a variable.  
2. e.g. const output = "Hello World!"; console.log(`The computer said '${output}' in a happy voice.`);
3. Open the file in the Dev Tools Source tab and notice that any code addd after the single quotes inside the template literal loses it's syntax highlighting.

What is the expected behavior?
Syntax highlighting to be correct after the use of single quotes in the template literal.

What went wrong?
Not sure.

Did this work before? No 

Chrome version: 67.0.3396.62  Channel: stable
OS Version: OS X 10.13.4
Flash Version:
 
Screen Shot 2018-06-07 at 9.30.33 AM.png
58.3 KB View Download
Labels: Needs-Triage-M67
Cc: krajshree@chromium.org
Labels: Triaged-ET Needs-Feedback
hal@ - Thanks for filing the issue...!!

Could you please provide a sample test file/url to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!

Comment 3 by kozy@chromium.org, Jun 11 2018

Owner: lushnikov@chromium.org
Status: Assigned (was: Unconfirmed)
Status: WontFix (was: Assigned)
Works fine for me on Chrome 71.0.3578.98

Sign in to add a comment