dualfroz f0a09a4a1b fix: group dotted identifiers split by interleaved comments (issue712)
Identifiers may carry comments between their tokens (e.g. name -- c\n . -- c\n obj). _group only skipped whitespace when locating the tokens around a joining token, so an interleaved comment defeated the prev/next checks and the identifier was never formed.

Add an opt-in skip_comments flag to _group and enable it for group_period and group_as; the comments stay inside the resulting group. Also skip comments in get_parent_name and avoid a redundant separating space in StripCommentsFilter for the newly reachable interleaved-comment identifiers.
2026-09-04 22:24:36 +02:00
S
Description
My contributions to andialbrecht/sqlparse: 3 commits
85 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 100%