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

Multiline function arguments in arrow functions aren't colored as arguments #791

Closed
rmtracey opened this issue Nov 22, 2019 · 1 comment
Closed

Comments

@rmtracey
Copy link

TS and JS Grammar Extension version: 0.0.53 / latest

Code

const test = (foo, bar) => `${foo} ${bar}`

const test2 = (
  foo,
  bar
) => `${foo} ${bar}`

function test3(foo, bar) {
  return `${foo} ${bar}`
}
function test4(
  foo,
  bar
) {
  return `${foo} ${bar}`
}

(Interesting, seems as though GitHub does the same thing)

Screenshot:
image

Like the title says, if the arguments of an arrow function span multiple lines, they lose the proper argument syntax highlighting. The issue doesn't occur for regular functions. I've seen a few similar issues to this one, but most of them say something about the issue being fixed with #552. However, I'm seeing the problem even on the latest grammar.

@felixakiragreen
Copy link

This is still a problem, why are all the issues being closed for it?

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

2 participants