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:
,
Jun 7 2018
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...!!
,
Jun 11 2018
,
Dec 19
Works fine for me on Chrome 71.0.3578.98 |
||||
►
Sign in to add a comment |
||||
Comment 1 by krajshree@chromium.org
, Jun 7 2018