-
Notifications
You must be signed in to change notification settings - Fork 37.2k
Closed
Labels
grammarSyntax highlighting grammarSyntax highlighting grammarjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)
Description
- VSCode Version: Code 1.16.0 (787b31c, 2017-09-06T16:19:37.192Z)
- OS Version: Linux x64 4.4.0-93-generic
- Extensions:
| Extension | Author (truncated) | Version |
|---|---|---|
| aurelia | Aur | 0.3.4 |
| vscode-docker | Pet | 0.0.16 |
| sass-lint | gle | 0.0.4 |
| sass-indented | rob | 1.4.1 |
| vscode-multiclip | sle | 0.1.2 |
(22 theme extensions excluded)
Steps to Reproduce:
- Open *.jsx file in editor
- Enter the next complex ternary operator:
{ i >= 2 && i < 3 ? "first branch" : i > (j - 2) * 4 ? "second branch" : "third branch" }
As a result, the code highlighter recognizes code between < and the last > as a tag (e.g. <div>).
Another interesting thing: if there is no any (round brackets expression) immediately after the last >, it's all fine.
Metadata
Metadata
Assignees
Labels
grammarSyntax highlighting grammarSyntax highlighting grammarjavascriptJavaScript support issuesJavaScript support issuestypescriptTypescript support issuesTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)Issue identified as 'upstream' component related (exists outside of VS Code)