haskell / haskell/haskell-mode

Syntax highlighting confused by lack of spaces

Open
#1,783 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Emacs Lisp
Stars
1.4k
Forks
354
Avg merge
5d 10h
Merged PRs (30d)
2

Description

If I have the following code in a file:

```haskell
bad xs = [x|x <- xs]
good xs = [ x | x <- xs]
```
the syntax highlighting gives up after the first '[x'.

If I remove or comment out 'bad' then it highlights correctly.

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in haskell-mode with the provided list-comprehension snippet, comparing the versions with and without spaces. Trace the syntax-highlighting path responsible for the first '[x' and verify that highlighting continues through the rest of the file without requiring spaces.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.