You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(bash): case ;& and ;;& fallthrough/continue-matching (#249)
## Summary
- Add `DoubleSemicolon`, `SemiAmp`, and `DoubleSemiAmp` tokens to the
lexer for proper case terminator parsing
- Parse case terminators into `CaseTerminator` enum: `Break` (`;;`),
`FallThrough` (`;&`), `Continue` (`;;&`)
- `;&` falls through to next case body unconditionally (without pattern
check)
- `;;&` continues checking remaining case patterns
Previously `;&` and `;;&` caused parser fuel exhaustion (infinite loop).
## Test plan
- [x] 5 new spec tests: fallthrough, chain, continue-matching,
continue-skip, and unconditional fallthrough
- [x] All 1214 spec tests pass (1209 pass, 5 skip)
- [x] `cargo clippy` and `cargo fmt` clean
- [x] Existing case tests (`;;`) still pass
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments