Skip to content

easytrieve: NASM % directives no longer route .mac to easytrieve (Part of #7064) - #7161

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7064-nasm-mac
Oct 30, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/7064-nasm-mac

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #7064

Checklist: partial [c:f6a05563] -- troff .mac trigger line unconfirmed (4 FreeBSD files not held here); DSP/MASM .mac stay plaintext (no owning language)

What changed

Easytrieve's internal_discriminator ended in a bare %name branch (macro call). NASM's %macro, %endmacro, %define, %include, %if*, %rep, %1: all matched it, so NASM .mac files were labelled easytrieve. The branch now refuses a leading digit and NASM / preprocessor directive words (word-bounded: %MSTFILE, %MACROX still match). A NASM .mac now lands in plaintext.

Class / Sibling gaps

Class: a non-Easytrieve .mac (NASM percent-directives) satisfying easytrieve's %name discriminator. Handled here: every NASM directive family (macro/define/include/conditionals/rep/assign/%1), upper and lower case, .mac/.MAC. Sibling gaps: (1) the 4 FreeBSD troff .mac files that routed easytrieve at probe time are not held on this box, so the matching line is unconfirmed (a synthetic troff file already routes plaintext); (2) DSP and MASM .mac stay plaintext on purpose (no owning language). No burned-estate program needs either.

Gates

pr_gates --fast 9/9 pass; --ratchets 9 pass, 0 fail (golden unchanged, no re-bless). 327 tests in the easytrieve/hlasm strict files pass. Not run: the full suite (CI).

Lessons for agents

Easytrieve's %name branch is shared by any %-directive language that shares .mac; add new .mac families to the exclusion list, not to hlasm.

Overlap: PR #7157 also edits hlasm.md; this adds one appended addendum.

🤖 Generated with Claude Code

…discriminator (Part of #7064)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 30, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 30, 2026 15:56
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant