Skip to content

[language-csharp] Collection of various missing syntax highlighting #1576

Description

@ditpowuh

Thanks in advance for your bug report!

  • Have you reproduced issue in safe mode?
  • Have you used the debugging guide to try to resolve the issue?
  • Have you checked our FAQs to make sure your question isn't answered there?
  • Have you checked to make sure your issue does not already exist?
  • Have you checked you are on the latest release of Pulsar?

What happened?

Several syntax highlighting are missing with the new tree-sitter grammar in language-csharp

  • Comparison operators
  • new operator
  • readonly keyword
  • String interpolation using $
  • async keyword
  • Attributes (e.g. [Serializable])

Other syntax highlighting issues:

  • The method part in generic method calls appear in the same highlighting color as the type
  • Instance method calls highlight differently to unqualified method calls

Apologies if this is a lot

Pulsar version

1.132.1

Which OS does this happen on?

🪟 Windows

OS details

Windows 11

Which CPU architecture are you running this on?

x86_64/AMD64

What steps are needed to reproduce this?

  1. Create C# file
  2. Use the items above

Additional Information:

Screenshot of random code, containing example for each of the above
Image

I'll keep an eye out if there is any more and follow up with them here

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions