purescript-mode
purescript-mode copied to clipboard
Block comment higlighting (with a "|")
Hi!
I've noticed that comments like this
--| ...
foo x = y
fail to properly hightlight as comments, and what I see is this:
I've tried to fix this on my end by adding
(add-hook 'purescript-mode-hook
(lambda ()
(font-lock-add-keywords nil
'(("--|.*" . font-lock-comment-face)))))
But this doesn't fully solve the problem, as ocassionally keywords appear in the comment line, which somehow breaks the comment highlighting 🤷♂️
Is this supported? Any advice on how to fix it? Thanks!
Is this supported? Any advice on how to fix it?
Sorry unfortunately I have no clue :D
My hope is that at some point we can switch over to tree-sitter based highlighting. If you do manage to figure it out, I'd be happy to accept a PR