Skip to content

fix(haskell): highlight where in GADT declarations - #4453

Merged
joshgoebel merged 1 commit into
highlightjs:mainfrom
Baltsat:codex/fix-haskell-gadt-where
Jul 25, 2026
Merged

joshgoebel merged 1 commit into
highlightjs:mainfrom
Baltsat:codex/fix-haskell-gadt-where

Conversation

@Baltsat

@Baltsat Baltsat commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Resolves #3753.

Changes

  • highlight where inside Haskell data, newtype, and closed type-family declarations
  • add markup coverage for all three valid forms
  • update CHANGES.md

This follows up on #3754, which was closed for inactivity. It also answers the open syntax question there: GHC documents where for both data and newtype GADT-style declarations and for closed type families.

Verification

  • regression fixture fails before the grammar change and passes after it
  • npm run build
  • ONLY_LANGUAGES=haskell npm run test-markup — 7 passing
  • npm run test — 1583 passing, 3 pending
  • npm run lint-languages
  • npm run lint — 0 errors; one existing ignored-vendor warning

Checklist

  • Added markup tests
  • Updated the changelog at CHANGES.md

Copilot AI review requested due to automatic review settings July 25, 2026 05:25

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Build Size Report

Changes to minified artifacts in /build, after gzip compression.

3 files changed

Total change +3 B

View Changes
file base pr diff
es/core.min.js 8.24 KB 8.24 KB +1 B
es/highlight.min.js 8.24 KB 8.24 KB +1 B
languages/haskell.min.js 1.07 KB 1.08 KB +1 B

@joshgoebel
joshgoebel merged commit 08859bf into highlightjs:main Jul 25, 2026
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(Haskell) GADT syntax highlighted incorrectly

3 participants