haskell.lang: ligatures highlighting is broken
In haskell.lang
(GTKSourceView 4.6.1-1), there’s a <context id="infix-keyword" style-ref="keyword">
which, among other things, includes <keyword>=</keyword>
. As a result, operators like /=
have a weird highlighting where only the =
is highlighted, but the /
is not. Furthermore, styling the =
separately, prevents fonts like Fira Code from ligatures forming, which is a shame: Haskell has lots of operators with beautiful ligatures.
Personally, I dislike it when one or two non-letter characters are specially highlighted, so removing the style-ref
property completely is my current workaround — that’s an option to consider here —, but maybe some pattern like /(?<!\/)=/
can also be used.
Edited by Sebastian Simon