Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Haskell syntax highlighting issue with type-level list cons operator #793

Open
jship opened this issue Jun 17, 2023 · 0 comments
Open

Haskell syntax highlighting issue with type-level list cons operator #793

jship opened this issue Jun 17, 2023 · 0 comments

Comments

@jship
Copy link

jship commented Jun 17, 2023

Describe the bug

When a Haskell code block contains the ': operator, chroma erroneously highlights everything after the ' character. For example, in this block:

sample :: Proxy (Int ': [])

The last 5 characters of the line - : []) - get incorrectly highlighted.

To Reproduce

This can be seen in the Chroma Playground here: https://swapoff.org/chroma/playground/#eyJsYW5ndWFnZSI6Ikhhc2tlbGwiLCJzdHlsZSI6Im1vbm9rYWlsaWdodCIsInRleHQiOiJzYW1wbGUgOjogUHJveHkgKEludCAnOiBbXSkiLCJjbGFzc2VzIjpmYWxzZX0

Here is the same snippet rendered in Pygments without the issue: https://pygments.org/demo/?lexer=haskell&style=monokai&formatter=html&code=sample+%3A%3A+Proxy+%28Int+%27%3A+%5B%5D%29

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

No branches or pull requests

1 participant