C# syntax highlighting of interpolated strings #144291
Labels
grammar
Syntax highlighting grammar
upstream-issue-linked
This is an upstream issue that has been reported upstream
Issue Type: Bug
I create a new C# file and put the following code into it:
I expect the interpolated string to show everything except the
w
in a single colour, the string colour. However, with the record, which isn't even being used anywhere else, the syntax highlighting is all over the map. If I comment out the record, then the string appears exactly as expected.Expected:

Actual:

VS Code version: Code 1.64.2 (f80445a, 2022-02-09T22:02:29.527Z)
OS version: Linux x64 5.14.16-gentoo
Restricted Mode: No
System Info
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: