haskell / haskell/vscode-haskell-syntax-highlighting

Flags inside pragma

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

Description

In `{-# OPTIONS_GHC -F -pgmF tasty-discover -optF --tree-display #-}`, the `--` is recognised as a comment, and so (at least with my current theme), the remainder of the line is greyed out.

I guess we shouldn't be looking for the single-line comment syntax while we're already inside a multi-line comment.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in VS Code using the OPTIONS_GHC pragma shown in the report, then inspect the extension's Haskell syntax-highlighting rules for pragma and comment handling. Done means the `--tree-display` argument is not treated as a single-line comment while inside the pragma.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.