8000 Haskell syntax highlighting issue with type-level list cons operator · Issue #793 · alecthomas/chroma · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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

Closed
jship opened this issue Jun 17, 2023 · 1 comment
Closed

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

jship opened this issue Jun 17, 2023 · 1 comment

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

@mdbrnowski
Copy link
Contributor

It's already fixed (with #913). @alecthomas

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

3 participants
0