haskell / haskell/vscode-haskell-syntax-highlighting

Mis-scope of let-binding declarations immediately followed by signatures

Open
#215 2 comments 1 reaction 0 assignees View on GitHub
wontfix
Dominant language
Haskell
Stars
109
Forks
51
Avg merge
3d 8h
Merged PRs (30d)
2

Description

The first local signature (for `x :: ()`) in the image below should have the same scope as the signature for `y` below it:

![foo](https://user-images.githubusercontent.com/18196871/168651929-0c64cd79-5146-462e-aa76-0e87882c5d52.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the Haskell snippet shown in the issue in VS Code and trace the syntax-highlighting grammar that assigns scopes to local signatures. Done means the x :: () declaration receives the same scope as the y signature immediately below it.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell, vscode
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.