Releases: emacs-tree-sitter/elisp-tree-sitter
Releases · emacs-tree-sitter/elisp-tree-sitter
0.18.0
- 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
andoutput
totsc-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
- Added customization option
tsc-dyn-get-from
, which is a list of sources to get the dynamic moduletsc-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 oftree-sitter-hl-mode
. This fixes an issue wherejupyter-repl-mode
's input cells are not highlighted. - Updated
tsc-dyn-get
to download platform-specific binaries (mainly for Apple Silicon).
0.16.1
- 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 astsc-dyn.dylib
)tsc-dyn.x86_64-unknown-linux-gnu.so
(same astsc-dyn.so
)tsc-dyn.x86_64-pc-windows-msvc.dll
(same astsc-dyn.dll
)tsc-dyn.aarch64-apple-darwin.dylib
(new, for Apple Silicon)
0.16.0
- 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.
- Disabled query-region extension. Added a flag to turn it back on:
0.15.2
- 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 generaltree-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
- 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
- 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.