Skip to content

Code highlighting trouble in *.jsx #34215

@limbosounds

Description

@limbosounds
  • 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:

  1. Open *.jsx file in editor
  2. 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 grammarjavascriptJavaScript support issuestypescriptTypescript support issuesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions