hvesalai / emacs-scala-mode

The definitive scala-mode for emacs
http://ensime.org
GNU General Public License v3.0
362 stars 68 forks source link

Don't understand rationale behind syntax hightlighting. #162

Closed smabie closed 3 years ago

smabie commented 3 years ago

screensho

Consider the attached screenshot. Sometimes, a type is blue, other times, light green. Is this intended behavior?

hvesalai commented 3 years ago

Well... it is a known thing, but not fully as I would have wanted it.

But your cursor is on the val x line. Here T is not a type, it is a value (an object with apply method).

hvesalai commented 3 years ago

I.e. the thing that is not as good as I would have wanted is the type parameters, which are now Green instead of Blue. That is something I struggled with, but decided to go the way it is now to highlight the erased type.