grafana / grafana/vscode-jsonnet

@'verbatim \ strings' seem to not be highlighted properly

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
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:

Image

I assume it's supposed to look roughly like c#'s verbatim string highlighting:

Image

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.