cue-lang / cue

The home of the CUE language! Validate and define text-based and dynamic configuration
https://cuelang.org
Apache License 2.0
5.02k stars 287 forks source link

vscode-cue: Incorrect interpolation syntax highlighting #3430

Open uhthomas opened 1 year ago

uhthomas commented 1 year ago

https://cuelang.org/docs/tutorials/tour/expressions/interpolation/

{
    name:  "TYPESENSE_URL"
    value: "ha://\(base64.Encode(null, json.Marshal({
        host: "typesense"
    })))"
}

image

The GitHub syntax highlighter seems to get this right.

uhthomas commented 1 year ago

Not sure why as GitHub just uses this repo. Perhaps there's a regression?

https://github.com/github-linguist/linguist/blob/625539a66f410dae93ba2c6d8ba058c825e1d1a9/.gitmodules#L1173-L1175