4 comments
Avatar
Permanently deleted user

I found the problem. It has to do with the syntax hilighting i had set up.

In particular i added: "Argument to by-name Parameters" and selected "include block expressions"

As in scala test, it is all about the block expression to by name parameters it was all changed in grey. The other option works perfect: Include Literals.


I would urge to fix that bug: "include block expressions" in scalatest cause issue.

1

This is wrong setting as block shouldn't be grey not only in Scalatest. Highlighting should be a bit different. This is known problem, but I don't have proper solution for that yet.

Best regards,
Alexander Podkhalyuzin.

0

In 2020 problem can be worked-around by:

uncheck: "Highlight arguments to by-name parameters"
uncheck: "Include block expressions"
uncheck: "Include literals"

in Settings/Language&Frameworks/Scala

 

1

Thanks Hartmut - would love it if an exception could be made for scalatest (similar to how scalatest keywords can be highlighted), since the by-name parameter highlighting can be quite useful.

0

Please sign in to leave a comment.