Commit ccb73c3
fix: preserve comment nodes at statement boundaries
The scanner previously folded comments into the terminator token, which
removed line_comment/block_comment nodes from the tree and broke
comment-based lint rules (TODO detection missed TODOs in script
sections). Now the scanner returns false when a comment follows the
newline run, so the comment is lexed as an ordinary extra and the
terminator is emitted after it — one terminator between statements, and
the comment survives as a node.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XaTroL9k3feq3MTAptE9bD1 parent e8ae7ee commit ccb73c3
5 files changed
Lines changed: 35700 additions & 35715 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
201 | | - | |
| 201 | + | |
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
300 | | - | |
| 299 | + | |
301 | 300 | | |
302 | 301 | | |
303 | 302 | | |
| |||
Binary file not shown.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments