Haskell syntax highlighting issue with type-level list cons operator · Issue #793 · alecthomas/chroma · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a Haskell code block contains the
':
operator, chroma erroneously highlights everything after the'
character. For example, in this block: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
The text was updated successfully, but these errors were encountered: