highlightjs/highlight.js

(Haskell) GADT syntax highlighted incorrectly

Open

#3.753 geöffnet am 11. Apr. 2023

Auf GitHub ansehen
 (4 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)JavaScript (3.497 Forks)batch import
buggood first issuehelp welcomelanguage

Repository-Metriken

Stars
 (22.960 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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

Contributor Guide