grafana / grafana/vscode-jsonnet
@'verbatim \ strings' seem to not be highlighted properly
- Dominant language
- JavaScript
- Stars
- 86
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
taking [the example from jsonnet.org](https://jsonnet.org/learning/tutorial.html) there's this bit in the middle:
```jsonnet
@'A clear \ red drink.'
```
with this grammar [babi](https://github.com/asottile/babi) (and probably vs code too) renders this as:
I assume it's supposed to look roughly like c#'s verbatim string highlighting:
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Jsonnet grammar used by the VS Code extension and reproduce the example from the jsonnet.org tutorial: @'A clear \ red drink.'. Compare its highlighting with the shown C# verbatim-string behavior. Done means the verbatim string and its escaped content are highlighted consistently in the extension.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100