highlightjs/highlight.js

(Haskell) GADT syntax highlighted incorrectly

Chiusa

#3753 aperta il 11 apr 2023

 (4 commenti) (0 reazioni) (0 assegnatari)JavaScript (3497 fork)batch import
buggood first issuehelp welcomelanguage

Metriche repository

Star
 (22.960 stelle)
Metriche merge PR
 (Merge medio 6m) (2 PR mergiate in 30 g)

Descrizione

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

Guida contributor