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

贡献者指南