Skip to content

Commit 7311757

Browse files
jjlonemanclaude
andcommitted
chore: 📝 add changeset for zsh dialect support (minor)
Co-Authored-By: Claude Opus 4.8 <[email protected]>
1 parent a543726 commit 7311757

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎.changeset/zsh-dialect-support.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"sh-syntax": minor
3+
---
4+
5+
Add zsh dialect support by rebuilding `main.wasm` against `mvdan/sh` v3.13.1 (was v3.11.0), and expose the `zsh` `LangVariant`. Valid zsh such as `${0:A:h:h}` now parses and prints instead of erroring with `ternary operator missing ? before :`.
6+
7+
**Breaking:** `LangVariant` values changed from a sequential enum to bit flags (`1 << iota`) to match `mvdan/sh` v3.13 — `LangBash` 0→1, `LangPOSIX` 1→2, `LangMirBSDKorn` 2→4, `LangBats` 3→8, new `LangZsh` = 16, `LangAuto` 4→32. Code using the exported `LangVariant` constants is unaffected; only code passing raw variant numbers needs updating.

0 commit comments

Comments
 (0)