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

Haddock incorrectly highlights text blocks in .hls files #1538

@gnull

Description

@gnull

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions