Skip to content

Releases: emacs-tree-sitter/elisp-tree-sitter

0.18.0

12 Feb 16:45
0.18.0
Compare
Choose a tag to compare
  • Added APIs to traverse the syntax tree: tsc-traverse-do, tsc-traverse-mapc, tsc-traverse-iter. The traversal is depth-first pre-order.
  • Improved syntax tree rendering's performance in tree-sitter-debug.
  • Added optional params props and output to tsc-current-node, which allows retrieving node properties, instead of the node object itself. This enables performance optimizations in uses cases that deal with a large number of nodes.

0.17.0

29 Jan 16:39
0.17.0
Compare
Choose a tag to compare
  • Added customization option tsc-dyn-get-from, which is a list of sources to get the dynamic module tsc-dyn from. Its default value is (:github :compilation).
  • Made tree-sitter-hl's region-fontification function fall back to the underlying non-tree-sitter function when called outside of tree-sitter-hl-mode. This fixes an issue where jupyter-repl-mode's input cells are not highlighted.
  • Updated tsc-dyn-get to download platform-specific binaries (mainly for Apple Silicon).

0.16.1

11 Dec 12:35
0.16.1
Compare
Choose a tag to compare
  • Modified CI pipelines to publish additional pre-built dynamic modules. Their filenames include the platform they are built for. The files without platform in name will eventually be deprecated.
    • tsc-dyn.x86_64-apple-darwin.dylib (same as tsc-dyn.dylib)
    • tsc-dyn.x86_64-unknown-linux-gnu.so (same as tsc-dyn.so)
    • tsc-dyn.x86_64-pc-windows-msvc.dll (same as tsc-dyn.dll)
    • tsc-dyn.aarch64-apple-darwin.dylib (new, for Apple Silicon)

0.16.0

08 Dec 12:12
0.16.0
Compare
Choose a tag to compare
  • Upgraded tree-sitter crate to 0.20.0, which:
    • Changed the semantics of range-restricted query to report matches that intersect the range, instead of only fully-contained matches. See tree-sitter#1130.
    • Fixed an issue where multiple patterns with the same capture names can result in the first capture being omitted.
  • Improved performance:
    • Disabled query-region extension. Added a flag to turn it back on: tree-sitter-hl-enable-query-region-extension.
    • Increased default chunk size for parsing from 1024 to 4096.

0.15.2

12 Sep 15:28
0.15.2
Compare
Choose a tag to compare
  • Reduced GC pressure by not making the text property face a list if there is only one face.
  • Recast tree-sitter-node-at-point as more general tree-sitter-node-at-pos, taking optional POS argument.
  • Made tree-sitter-node-at-pos accept special node-type arguments :named and :anonymous.

0.15.1

20 Mar 11:23
0.15.1
Compare
Choose a tag to compare
  • Fixed some invalid query patterns causing SIGABRT, by upgrading tree-sitter crate.
  • Used keywords to represent auxiliary (invisible) node types. For example: :end, :_expression.

0.15.0

15 Mar 05:57
0.15.0
Compare
Choose a tag to compare
  • Upgraded tree-sitter crate to 0.19.3, which:
    • Added negated-field query patterns.
    • Fixed some bugs, mostly query-related.
    • Is required to support newer versions of the language grammars.
    • Raised the minimum and maximum supported language ABI versions to 13. Older versions of the language bundle tree-sitter-langs (before 0.10.0) will not be loaded.

0.14.0

10 Mar 16:50
0.14.0
Compare
Choose a tag to compare
  • Added ABI compatibility checks when loading a language object from a dynamic library.
  • Made tsc-make-query signal concrete error symbols, instead of rust-panic.

0.13.1

16 Jan 06:57
0.13.1
Compare
Choose a tag to compare
  • Used static linking for C runtime on Windows, to avoid having to install VC++ redistributable package.

0.13.0

30 Dec 11:37
0.13.0
Compare
Choose a tag to compare