Version Used:
.NET 7.0.306 on Visual Studio 17.6.5
Steps to Reproduce:
public sealed record Foo
{
[StringSyntax(StringSyntaxAttribute.Json)]
public required string Bar { get; set; }
}
The syntax highlighting for the JSON in Bar works great for object initialization and regular property assignment, but it falls down in with expressions:

Version Used:
.NET 7.0.306 on Visual Studio 17.6.5
Steps to Reproduce:
The syntax highlighting for the JSON in
Barworks great for object initialization and regular property assignment, but it falls down inwithexpressions: