Could lang=regex syntax handling apply to consts that are later used in a recognized location? #77189
Labels
Area-IDE
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
Milestone
Today if I have:
I get nice syntax coloring / IntelliSense support for that "someRegex" string. Same applies anywhere [StringSyntax("Regex")] is used, or if
/* lang=regex */
is applied.Frequently, though, I'll see code that has:
and that "someRegex" doesn't get the nice support.
Could Roslyn see that SomePattern is passed somewhere that accepts [StringSyntax("Regex")] and implicitly treat it as if it had
/* lang=regex */
applied?cc: @CyrusNajmabadi
The text was updated successfully, but these errors were encountered: