Here's a neat tool - ast-grep. Find & replace on your code using it's actual structure rather than plain text matching.
Here's a little demo video I made for coworkers, but figured others here might find it interesting :)
https://ast-grep.github.io #programming #webdev
=> More informations about this toot | More toots from joshhunt@hachyderm.io
Still works even for slightly more complex expressions. It's correctly passing through the bang-bang for the arguments.
=> More informations about this toot | More toots from joshhunt@hachyderm.io This content has been proxied by September (ba2dc).Proxy Information
text/gemini