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
{{ message }}
Repository navigation
Commit bb68aa5
Browse filesBrowse the repository at this point in the historyBrowse files
Fix case statement parsing and add real-world test cases (#283)
* fix: prevent separator_op from consuming first `;` of `;;` in case items
The `separator_op` grammar rule matched a bare `;` which greedily consumed
the first character of the `;;` (DSEMI) token inside case items when the
command and `;;` were on the same line (e.g., `echo "hi" ;;`). Added a
negative lookahead (`";" ~ !";"`) so `;` only matches when not followed
by another `;`.
Also adds real-world test cases from popular install scripts (pixi, rustup,
nvm, docker, homebrew) to prevent regressions.
0 commit comments