haskell / haskell/vscode-haskell-syntax-highlighting
Add some examples how to configure QuasiQuotation syntax highlighting?
- Dominant language
- Haskell
- Stars
- 109
- Forks
- 51
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 2
Description
First of all, I'm sorry if this is too much unrelated to `language-haskell` itself, but I was wondering if you could provide some examples (or at least links to some external documentation) how exactly can I configure the newly added logic that allows syntax highlighting for _quasiquotes_? Why I'm asking for this - I'm really happy with this _VSCode_ extension, but I have zero experience how it works under the hood. I can imagine that most of people would use this highlighting stuff to some common use-cases, such as to highlight _quasiquotations_ used to build _regular expressions_ or string interpolators, such as:
```haskell
let regex = [re|^\h*-}|\w+\h*-}|^--|]
let interpolated = [i|Hello, #{userName user}|]
```
I have no idea how much work is to configure the syntax highlighting for this, but maybe it would be worth it to more promote this feature in documentation with few examples?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the VSCode extension's existing quasiquotation syntax-highlighting configuration and documentation, then identify where user-facing examples or external links belong. Document configuration examples for regular-expression and string-interpolation quasiquotes, and consider the work done when users can follow the documentation to configure both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell, vscode
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100