lovasoa commented on PR #1738: URL: https://github.com/apache/datafusion-sqlparser-rs/pull/1738#issuecomment-2678881467
Ok, ast-grep is [a bit of a pita to use with rust](https://github.com/ast-grep/ast-grep/issues/853), but I managed to get it to do most of the work with the following rule: ```yaml id: x language: rust rule: any: - kind: token_tree pattern: $ARG follows: kind: identifier pattern: Value follows: kind: identifier pattern: Expr stopBy: end fix: ($ARG.with_empty_span()) ``` the tests pass now ! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org