Haddock coloration behaves strangely
See original GitHub issueIn my current application we are starting to use real Haddock documentation, and I noticed the plugin behaves weirdly sometimes.
Start by copy/pasting it:
-- |foo
foo :: Bool
foo = True
-- |foo
should be correctly displayed in green.
Now put your cursor at the end of this doc line and type enter. I think it would be a great improvement that it automatically adds --
to the beginning of the line because we are continuing the documentation.
Nevertheless, type -- bar
. This is displayed in grey (regular comment) instead of green (Haddock) 😢
Now remove the last character. The grey block of documentation turns green!
It also becomes green if you go to a green line and modify it (e.g. press space
).
I don’t know what this is about, but it would be great if at least the 2 display bugs could be fixed. It would be even better if hitting enter
at the end of a Haddock line automatically added --
to the next line.
And it would be 100% perfect if refreshing the Haddock display in Intellij (at least for our own code) didn’t require to use (Re)Build Hoogle database
, but I guess this is too much asking ^^
By any chance, is this something easily fixable? If yes, I may try to take a look :x
Cheers!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
@Sir4ur0n Took some time but is fixed in next release except for refreshing Haddock display in project code.
I confirm this works, this is an excellent improvement ❤️
Thank you again 🙏