I can certainly prepare a small patch for the first commitfest of 9.7 if this sounds viable.
I'd be surprised if it was popular.
I am familiar with some cases where it would have been a lifesaver....
It's hard to imagine a way to do it robustly when dealing with pre-lexer input, unless you're doing simple pattern matching to identify and replace whole statements.
INDEED. No intention whatsoever to do much more than that O:-)