-
-
Notifications
You must be signed in to change notification settings - Fork 436
Closed
Description
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
phagenlocher
Metadata
Metadata
Assignees
Labels
No labels