Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
pm4rcin opened this issue Dec 1, 2024 · 0 comments

Comments

@pm4rcin
Copy link

pm4rcin commented Dec 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant