sublime_merge icon indicating copy to clipboard operation
sublime_merge copied to clipboard

Incorrect syntax highlighting in diff window

Open IskanderSitdikov opened this issue 1 year ago • 1 comments

Version info

  • OS: Windows 10
  • Build: 2091

Incorrect syntax highlighting when using "Raw string literal text" with String interpolation using $ in C# https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/raw-string https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/tokens/interpolated

Steps to reproduce

Steps to reproduce the behavior:

  1. Add "Raw string literal text" with String interpolation using $ in any .cs file
  2. Look at the difference window

Expected behavior I expect regular syntax highlighting

Diff window: image

Same code in VS: image

IskanderSitdikov avatar Feb 20 '24 08:02 IskanderSitdikov

This will be fixed in a future release when the default packages get updated: sublimehq/Packages#3789. You should be able to override the C# package if you'd like.

srbs avatar Mar 03 '24 13:03 srbs