Commit 41d712e
fix(verify-harvard): skip doc-comment lines + add word-boundary guards
The grep -iE 'If|...|For|...' was case-insensitively matching the English
word "for" in doc-comment prose ("for shortest path", "algebraic form")
inside the DataExpr enum block, producing false positives for the semiring
operators Min/Max/Or/Xor — all of which are genuinely data-level.
Fix: filter comment lines with `grep -v '^\s*//'` before the variant scan,
and wrap each keyword in `\b...\b` so e.g. "form" no longer matches "For".
`just contractile-check` now passes: bust-check ✓.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent fdc2ae6 commit 41d712e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
486 | 486 | | |
487 | 487 | | |
488 | 488 | | |
489 | | - | |
| 489 | + | |
490 | 490 | | |
491 | 491 | | |
492 | 492 | | |
| |||
0 commit comments