Skip to content

C# interpolated strings not supported #1573

Closed

Description

@MongoCaleb

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}");

Activity

  1. ashantilong commented on Mar 2, 2021

    @ashantilong

    claim

  2. matrdr commented on Mar 17, 2021

    @matrdr

    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

  3. added this to the 2.10 milestone on Jul 27, 2021
  4. added a commit that references this issue on Mar 16, 2024
    08d3545
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lexingarea: changes to individual lexerschangelog-updateItems which need to get mentioned in the changeloggood first issueGood for newcomers

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions