[Haskell-cafe] Syntax highlight for numeric literals
Takenobu Tani
takenobu.hs at gmail.com
Sun Jan 7 14:01:03 UTC 2018
Hi iustin,
Thank you for reply.
> I'm surprised that Emacs/haskell-mode is the only case where the 'exact'
version cannot be implemented. Do you know/can you explain why?
It's simple.
`font-lock` was a bit difficult for me :)
Haskell-mode highlights strings (e.g. constructor, type, ...) other than
numeric literals.
(Numeric literals are not highlighted.)
In order to correct the highlights of numeric literals,
it seems necessary to accurately define highlights other than numeric
literals.
Regards,
Takenobu
2018-01-07 22:09 GMT+09:00 Iustin Pop <iustin at k1024.org>:
> On 2018-01-05 14:34:28, Takenobu Tani wrote:
> > Dear cafe,
> >
> > I wrote and pushed a bit about the syntax highlights of numeric literals
> > for `BinaryLiterals`, `HexFloatLiterals` and `NumericUnderscores`
> > extensions on editors.
> >
> > https://github.com/takenobu-hs/haskell-numeric-highlight
> >
> > I'm glad if this helps you.
>
> This is interesting, thanks. I'm surprised that Emacs/haskell-mode is
> the only case where the 'exact' version cannot be implemented. Do you
> know/can you explain why?
>
> thank you,
> iustin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180107/d82b866d/attachment.html>
More information about the Haskell-Cafe
mailing list