Skip to content

Block comment higlighting (with a "|") #16

@alenkis

Description

@alenkis

Hi!

I've noticed that comments like this

--| ...
foo x = y

fail to properly hightlight as comments, and what I see is this:
Screenshot 2023-11-17 at 5 17 59 PM

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!

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