What happened?
lib/parser/python.ts's tokenizer has no docstring-aware state — the COMPOUND regex (line 60) matches control-flow keywords the start of any line, including lines inside a '''/""" docstring. A docstring containing if this looks like code: produces spurious branch node that doesn't correspond to any real control flow.
Code snippet (if parser-related)
Environment
No response
Where did this happen?
Live site (code2flow-one.vercel.app)
What happened?
lib/parser/python.ts's tokenizer has no docstring-aware state — the COMPOUND regex (line 60) matches control-flow keywords the start of any line, including lines inside a '''/""" docstring. A docstring containing if this looks like code: produces spurious branch node that doesn't correspond to any real control flow.
Code snippet (if parser-related)
Environment
No response
Where did this happen?
Live site (code2flow-one.vercel.app)