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
The reason for this bug is that the record fields and their type signatures actually have no special parsing.
They are handled like any other line of code.
It just so happens that fields which are not preceded by a comma (or curly brace) on the same line look like signature definitions of functions, thus the field label has the same color as a function and the other labels look like inline type signatures, hence no special highlighting for the field.
There are two ways to fix this.
(quick and dirty) Don't highlight function names in signature definitions
Add special treatment for a data definition by writing proper parse rules for it.
As I'll want to do Nr 2 at some point anyways to properly distinguish types and constructors in data definitions at some point I think I'll go with that.
Not sure yet when I'll get around to it though.
Note the different colors:
The text was updated successfully, but these errors were encountered: