Skip to content
New issue

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

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

Already on GitHub? # to your account

with does not highlight at the end of a line #156

Closed
nicolasstucki opened this issue Nov 30, 2020 · 2 comments · Fixed by #161
Closed

with does not highlight at the end of a line #156

nicolasstucki opened this issue Nov 30, 2020 · 2 comments · Fixed by #161
Labels
bug Something isn't working Scala 2 Scala 3

Comments

@nicolasstucki
Copy link
Contributor

with is a keyword and should always be highlighted as such.

@nicolasstucki nicolasstucki added the bug Something isn't working label Nov 30, 2020
@nicolasstucki
Copy link
Contributor Author

Screenshot 2020-11-30 at 17 14 48

@nicolasstucki
Copy link
Contributor Author

This will be important in Scala 3 for given definitions. See scala/scala3#10538

given tc: TC with {}

given Liftable[Boolean] with {
  def toExpr(b: Boolean) = ...
}

given listMonad: Monad[List] with
  extension [A, B](xs: List[A]) def flatMap (f: A => List[B]): List[B] = xs.flatMap(f)
  def pure[A](x: A): List[A] = List(x)

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

Successfully merging a pull request may close this issue.

1 participant