▲ | sublinear 4 days ago | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Nobody wants to have to run their own formatter rules in reverse in their head just to know what to grep for. That defeats the point of formatting at all. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | pwdisswordfishz 4 days ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
That's why you grep for a syntactic structure, not undifferentiated text. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | theamk 3 days ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
You'd need all-news tools for non-text world as well. So the real choice is either: - new tool: grep with caching reverse-formatter filter. - new tool: ast-grep with understanding of AST serialization format for your specific language. At least in the first case, you still have fall back. |