Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newlines between arrow function parameters break highlighting in TSX #383

Closed
zsparal opened this issue Dec 14, 2016 · 0 comments
Closed

Comments

@zsparal
Copy link

zsparal commented Dec 14, 2016

TS and JS Grammar Extension version: 0.0.12 / latest

Code

Newline only
const working = (first: number, second: Set<string>) => (<div></div>);

const broken = (first: number,
	second: number[],
) => (<div></div>);

const followup = (first: number, second: Set<string>) => (<div></div>);

image

The newline does not break the rest of the file, but the applied classes are wrong.

Generic + newline
const working = (first: number, second: Set<string>) => (<div></div>);

const broken = (first: number,
	second: Set<string>,
) => (<div></div>);

const followup = (first: number, second: Set<string>) => (<div></div>);

image

With an added generic the rest of the file is incorrectly highlighted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant