haskell / haskell/haskell-mode
Syntax highlighting confused by lack of spaces
Open
- 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
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