Any Tutorial on Subclassing ReindentFilter or AlignedIndentFilter for customing parsing?
I would like to create my own alternate to ReindentFilter and AlignedIndentFilter.
I played around a bit with subclassing AlignedIndentFilter and making changes, but am now stuck.
Is there any tutorial available that explains how we can make our own extensions?
I also played a little with this. I created a super class which just splits the statement and reimplemented the two filters ReindentFilter and AlignedIndentFilter as subclasses of the first as long as they basically perform the same splitting, just with a different offset. @mkmoisen: If you want I can share with you a branch with the solution to show you the new structure
@f-raffa Yes please, would you kindly share your branch?
@mkmoisen: https://github.com/f-raffa/sqlparse/tree/new-splitting-and-grouping-logic let me know if you can access it