Open
Description
Consider
private static Regex r = new Regex(@"a
b
c", RegexOptions.IgnorePatternWhitespace);
run the fixer, now I have
[GeneratedRegex("a\r\n b\r\n c", RegexOptions.IgnorePatternWhitespace)]
private static partial Regex MyRegex();
The semantics are the same, but the readability is gone. I would expect
[GeneratedRegex(@"a
b
c", RegexOptions.IgnorePatternWhitespace)]
private static partial Regex MyRegex();
I see #69616 which implies that whitespace is preserved but not comments. I don't see whitespace preserved, or at least not in the original form.