highlightjs/highlight.js

(Haskell) GADT syntax highlighted incorrectly

Fechada

#3.753 aberto em 11 de abr. de 2023

 (4 comentários) (0 reação) (0 responsável)JavaScript (3.497 forks)batch import
buggood first issuehelp welcomelanguage

Métricas do repositório

Stars
 (22.960 estrelas)
Métricas de merge de PR
 (Mesclagem média 6m) (2 fundiu PRs em 30d)

Description

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

Guia do colaborador