haskell / haskell/vscode-haskell-syntax-highlighting

Create a LiquidHaskell specific grammar

Open
#159 0 comments 0 reactions 0 assignees View on GitHub
enhancement priority:low
Dominant language
Haskell
Stars
109
Forks
51
Avg merge
3d 8h
Merged PRs (30d)
2

Description

At the moment certain LiquidHaskell annotations such as

```haskell
{-@ type NonEmpty a = {v:[a] | 0 < len v } @-}
```

don't have the best highlighting. In the above example, `type` isn't highlighted as a keyword because it isn't recognised as the beginning of a type declaration, because `type` isn't the first non-whitespace character on the line.

To fix this I think we would need a specific LiquidHaskell grammar file, that would also support special highlighting for the typing syntax `v:A`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.