Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Haddock incorrectly highlights text blocks in .hls files #1538

Open
gnull opened this issue Dec 7, 2022 · 0 comments
Open

Haddock incorrectly highlights text blocks in .hls files #1538

gnull opened this issue Dec 7, 2022 · 0 comments

Comments

@gnull
Copy link

gnull commented Dec 7, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant