Skip to content

feat: ?h cond a b prefix-ternary for general conditions#363

Merged
danieljohnmorris merged 4 commits into
mainfrom
fix/ternary-as-expr-rhs
May 17, 2026
Merged

feat: ?h cond a b prefix-ternary for general conditions#363
danieljohnmorris merged 4 commits into
mainfrom
fix/ternary-as-expr-rhs

Conversation

@danieljohnmorris
Copy link
Copy Markdown
Collaborator

Closes security-researcher rerun8 ternary-RHS finding.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 17, 2026

Codecov Report

❌ Patch coverage is 86.20690% with 12 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/parser/mod.rs 86.20% 12 Missing ⚠️

📢 Thoughts on this report? Let us know!

ai.txt and skills/ilo/SKILL.md were out of sync with SPEC.md (build.rs
regenerates them from SPEC.md and CI verifies no drift).

examples/ternary-h-prefix.ilo used `eq mn "v40"` but `eq` is not a
builtin; only the `=` operator exists. Swap for the parenthesised
`(=mn "v40")` form that the parser accepts on a let-RHS. Update the
matching SPEC.md snippet for the same reason.
The previous regen was stale because cargo's rerun-if-changed didn't
trip on the SPEC.md edit in the same commit. Touch SPEC.md and rebuild
so build.rs writes the current snapshot.

regression_ternary_h_keyword.rs:79 also used the non-existent `eq`
builtin; swap for `(=mn "ok")` so the test exercises the same shape as
the example and the SPEC.md snippet.
@danieljohnmorris danieljohnmorris merged commit f21fe1f into main May 17, 2026
4 of 5 checks passed
@danieljohnmorris danieljohnmorris deleted the fix/ternary-as-expr-rhs branch May 17, 2026 21:15
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