atom / language-csharp

C# language support for Atom
Other
62 stars 53 forks source link

[C#] syntax coloring breaks down with interpolated strings #43

Closed aeschli closed 7 years ago

aeschli commented 8 years ago

From @jumpinjackie on December 2, 2015 6:40

Using VSCode 0.10.3

The C# syntax coloring breaks down when interpolated strings are involved.

Example code

    namespace Test
    {
        public class Foo
        {
            static string AddTableName(string suffix) => $"Bar{suffix}_ADD";

            static string ModTableName(string suffix) => $"Bar{suffix}_MOD";

            static string DelTableName(string suffix) => $"Bar{suffix}_DEL";
        } 
    }

VSCode screenshot

capture

Copied from original issue: Microsoft/vscode#900

aeschli commented 8 years ago

Same problem in Atom (language-csharp v0.11.0): image

50Wliu commented 8 years ago

I plan on looking at these in the coming weeks, provided my schedule works out. Sorry for the delay.

ghost commented 8 years ago

CC https://github.com/github/linguist/issues/2865, @jaredpar, @akoeplinger.

:+1:

jaredpar commented 8 years ago

CC @dustincampbell

DustinCampbell commented 8 years ago

FWIW, these should probably be moved over to https://github.com/OmniSharp/omnisharp-vscode and https://github.com/OmniSharp/omnisharp-roslyn