]> git.phdru.name Git - sqlconvert.git/blobdiff - scripts/group-sql.py
Allow whitespaces and comments after the last statement
[sqlconvert.git] / scripts / group-sql.py
index f1f09886ea6be49b31632f767bf640ed25b8b141..0eab6b4042253cba3a629df455841924e2935c22 100755 (executable)
@@ -22,7 +22,10 @@ def main(*queries):
                 print()
                 statement._pprint_tree()
             print("----------")
-    grouper.close()
+    tokens = grouper.close()
+    for token in tokens:
+        print_tokens(token)
+        print(repr(token))
 
 
 def test():