Closed
Description
- VSCode Version: 1.35.0
- OS Version: macOS 10.14.5
Steps to Reproduce:
- Set Language to "Javascript"
- Create a line of code that performs a less-than comparison where the right-side starts with a letter, such as
const fooBar = foo < bar
. This will work fine. But now insert a line break before the less-than symbol. Syntax highlighting will interpret this second line incorrectly, and will color it and numerous lines after it in all-red.
Real-world use-case is a much longer line of code which has been broken onto multiple lines for readability/linting, but this example easily reproduces the behavior.
Here is a real-world example of failing highlighting:
And here is the same line of code, but with the line break removed (no longer showing broken highlighting):
Metadata
Metadata
Assignees
Labels
No labels