Skip to content

Releases

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Nov 17:41
v0.2.0
98c736e

Added

  • Added queries/neovim/ with highlight, fold, indent, injection, and locals queries for nvim-treesitter, each extending its Bash queries, and a README section on using the parser in Neovim.
  • Added a CI check of queries/ with ts_query_ls, which validates the patterns against the parser and enforces its formatting. queries/highlights.scm is reformatted to match, with no change to its captures.

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 08 Oct 18:34
v0.1.0
680b1b0

Added

  • Added the repository scaffold generated by tree-sitter init, with C, Go, Node.js, Python, Rust, and Swift bindings.
  • Added test_block nodes for Bats @test definitions, with name (a test_name) and body fields, by extending tree-sitter-bash 0.25.1.
  • Added CI that parses the .bats files of public Bats suites, with known failures listed in script/known-failures.txt.
  • Added test_marker_comment nodes for the # @test comment that makes Bats run a function as a test, as in name() { # @test.
  • Added a tag-triggered release workflow that publishes to npm, crates.io, and PyPI through trusted publishing and creates the GitHub Release; see RELEASING.md.
  • Added queries/highlights.scm for Bash and Bats syntax, with highlight tests and a check that no node gets two highlight captures.

Fixed

  • Fixed [ ... ] tests merging with later redirected commands and a following [ ... ] into one test_command (tree-sitter-bash#316).
  • Fixed herestrings after a file or heredoc redirect, as in cat > file <<<"text", producing an ERROR (tree-sitter-bash#232).