Skip to content

[Bug report] Interpolated raw string literals are wrongly highlighted with more braces #359

@pm4rcin

Description

@pm4rcin

Hi, while testing new C# syntax I've noticed that an example taken from official docs is wrongly highlighted. Only the second string is interpolated as shown in tree-sitter. The feature was introduced in c# 11 but I guess nobody has tested it in such case until today.
20241201_15h13m40s_grim

This is the example output when printing it. Notice that the code works fine with omnisharp so it's the parser error:

You are at {59.10, 59.10}

Interestingly moving the first interpolated string to newline fixes highlighting.
20241201_15h27m56s_grim

Here's the link to docs with the example which I've copied. And the detailed design with pseudo grammar or smth like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions