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

C# interpolated strings not supported #1573

Closed
MongoCaleb opened this issue Oct 14, 2020 · 2 comments
Closed

C# interpolated strings not supported #1573

MongoCaleb opened this issue Oct 14, 2020 · 2 comments
Labels
A-lexing area: changes to individual lexers changelog-update Items which need to get mentioned in the changelog good first issue Good for newcomers
Milestone

Comments

@MongoCaleb
Copy link

Interpolated Strings cause the code to lose all syntax formatting. Removing the $ and just using boring strings works.

This works:

                Console.WriteLine("I created a key named" + newKey.Name +
                    "Is it enabled?" + newKey.IsEnabled);

This doesn't:

                Console.WriteLine($"I created a key named {newKey.Name}. " +
                    $"Is it enabled? {newKey.IsEnabled}");
@Anteru Anteru added the good first issue Good for newcomers label Jan 6, 2021
@Anteru Anteru added the A-lexing area: changes to individual lexers label Jan 14, 2021
@ashantilong
Copy link

claim

@matrdr
Copy link

matrdr commented Mar 17, 2021

It seems that they do not crash the entire system any more. But the dollar signs get highlighted by putting a red box around them which looks horrible.
image

AndreasBilke added a commit to AndreasBilke/pygments that referenced this issue Jul 27, 2021
Allow $ sign in C# language for interpolated strings.
@Anteru Anteru added this to the 2.10 milestone Jul 27, 2021
@Anteru Anteru added the changelog-update Items which need to get mentioned in the changelog label Jul 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-lexing area: changes to individual lexers changelog-update Items which need to get mentioned in the changelog good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

4 participants