Skip to content

v0.8.5

Choose a tag to compare

@github-actions github-actions released this 14 Nov 08:10
· 7 commits to main since this release
Immutable release. Only release title and notes can be modified.
6be3bc6

Patch Changes

  • #176 889d042 Thanks @JounQin! - Use a generated binary wire for AST transport, removing the JSON parser and encoding/json from the WASM path.

  • #173 ac1cbee Thanks @JounQin! - print(ast) now prints the current syntax tree, including edits made to its fields, instead of requiring originalText.

  • #178 910c9a3 Thanks @JounQin! - print(node) now prints printable syntax subtrees: files, statements, commands, words, word parts, and assigns. File output keeps its trailing newline; subtree output does not.

  • #179 fec2d3f Thanks @JounQin! - Add splitBraces(word) returning { word, changed } to split brace expressions into BraceExp parts for analysis. changed is true when mvdan processed brace syntax, even if no BraceExp remains. The returned word keeps its original source span. Split literals lack source positions, while composite BraceExp bounds may be derived from retained children and serialized. The printer cannot render BraceExp; such trees are rejected explicitly.