Skip to content

Broken syntax highlighting for tsx expression with arrow function in attribute  #667

Closed

Description

@mjbvz

From microsoft/vscode#58810

TS and JS Grammar Extension version: 0.0.45 / latest

Code

const foo = <Foo itemIcon={tabDef.ItemID ? (tabDef.Image || null) : 'Add'} onRenderItemLink={(props) => { }}>text</Foo>; 

The highlighting seems to break after the arrow function attribute

screen shot 2018-09-17 at 10 38 45 am

The issue actually starts in the ternary operator, with the left hand side tabDef.Image being scoped as meta.parameters.tsx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions