Skip to content

fix(debt): grep -- and ; comment markers too - #1117

Open
devohmycode wants to merge 1 commit into
DietrichGebert:mainfrom
devohmycode:fix/debt-dash-semicolon
Open

devohmycode wants to merge 1 commit into
DietrichGebert:mainfrom
devohmycode:fix/debt-dash-semicolon

Conversation

@devohmycode

Copy link
Copy Markdown
Contributor

Problem

The /ponytail-debt pattern only knows #, // and /*. Markers in -- comments (SQL, Lua, Haskell, and HTML's <!--) and in ; comments (INI, Lisp) never reach the ledger.

Fix

The pattern adds -- and ;, in all four copies. It sits on top of #1108; this is the part of #1076 that #1108 did not cover.

Checks

  • tests/commands.test.js feeds --, <!-- and ; markers to the real pattern of each copy: 5/5 pass. The new samples fail on the old pattern.
  • In this repo, the new pattern also finds the HTML marker in examples/modal-dialog.md, and nothing else new.
  • node scripts/check-rule-copies.js and node scripts/check-versions.js pass.

offendingcommit added a commit to offendingcommit/ponytail that referenced this pull request Oct 13, 2026
Exercise SQL/Lua, HTML, and Lisp comment candidates for both neutral and legacy markers across all four debt entry points. Preserve explicit coverage alongside the open prefix-focused peer PR.

Refs: DietrichGebert#1123
Refs: DietrichGebert#1117
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant