haddock icon indicating copy to clipboard operation
haddock copied to clipboard

Haddock incorrectly highlights text blocks in .hls files

Open gnull opened this issue 3 years ago • 0 comments

image

I see this after compiling an .lhs file using haddock and opening the source code view in my browser. Haddock tries to highlight Haskell syntax inside the literate text blocks, note the double quotes and "where" on the screenshot.

I thought it would be more reasonable to treat literate text blocks as comments, and highlight them as such. What do you think?

How hard would it be to make the change? And would you be interested to review a PR for it? (And if so, could you give me any pointers for the relevant parts of the code base?)

Ivan

gnull avatar Dec 07 '22 15:12 gnull