You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you are talking about the types not being highlighted, that is a design decision. I try to highlight the types when they are introduced, not so much when they are used — although I do in some cases such as (x: t). Highlighting all the signatures after val was not completely reliable — it is hard to know when they finish with regexps — and, IMHO, not very useful — val and the function name are highlighted, what follows is necessarily a signature. For the case let f x : t =, I could highlight t since it is "lost" inside another expression and coloring it may help readability.
For consistency, the let case is important to have, and it does help readability. I also think highlighting val types would also be more consistent. But it's not as useful, so I won't push it.
Font-lock rules seems to be failing to apply to type expressions in many cases.
These cases fail for me:
Only non-function values declared with
let
andtype
definitions work.The text was updated successfully, but these errors were encountered: