Skip to content

Inconsistent coloring for variable names in a multiple variable val statement #153

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

Closed
soronpo opened this issue Nov 17, 2020 · 1 comment
Labels
bug Something isn't working Scala 2 Scala 3

Comments

@soronpo
Copy link

soronpo commented Nov 17, 2020

Notice in the following example x1 is colored differently than x2 and x3

class Foo {
  val x1, x2, x3 = 0
}

image

@nicolasstucki
Copy link
Contributor

nicolasstucki commented Dec 11, 2020

We might need to handle these ones in the same way (i.e. without coloring).

val x1, x2, x3 = ...
val (x1, x2, x3) = ...
val (None, Some(x2), x3) = ...

The only way to make this one work with colors is using look behind for the 2nd, 3rd, ... variables. But this feature is still missing in JS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Scala 2 Scala 3
Projects
None yet
Development

No branches or pull requests

2 participants