highlightjs/highlight.js

(Haskell) GADT syntax highlighted incorrectly

Open

#3,753 建立於 2023年4月11日

在 GitHub 查看
 (4 留言) (0 反應) (0 負責人)JavaScript (22,960 star) (3,497 fork)batch import
buggood first issuehelp welcomelanguage

描述

Describe the issue

The where keyword in the Haskell GADT syntax is not highlighted correctly

Which language seems to have the issue?

haskell

Are you using highlight or highlightAuto?

highlightElement

Sample Code to Reproduce

https://jsfiddle.net/8j5zb4ny/1/

Expected behavior

The where keyword at the end of the first line should get a different highlighting to show that it is not a type variable

貢獻者指南