version: 2.15.0
This is a demo which can reproduce this bug.
def test_hang(self):
from sql_metadata import Parser
s = """WITH a AS (SELECT MAX(b) AS c
FROM d
WHERE domain =e''$.f') AS g
FROM h;"""
Parser(s).tables
With some debug, I find that it seems stuck in the while self._is_in_with_block and token.next_token: loop.
