fix(rust): treesit: use v0.23.2 on Emacs <=29

v0.24.0 errors out on <=29.

Fix: #8473
This commit is contained in:
Henrik Lissner
2025-09-02 03:11:01 +02:00
parent 2443148f6d
commit 13e32dcbe9

View File

@@ -50,10 +50,7 @@
(when (modulep! +tree-sitter)
(set-tree-sitter! 'rust-mode 'rustic-mode
`((rust :url "https://github.com/tree-sitter/tree-sitter-rust"
:commit ,(if (and (treesit-available-p)
(< (treesit-library-abi-version) 15))
"1f63b33efee17e833e0ea29266dd3d713e27e321"
"18b0515fca567f5a10aee9978c6d2640e878671a")))))
:rev ,(if (< (treesit-library-abi-version) 15) "v0.23.2" "v0.24.0")))))
;; HACK Certainly, `rustic-babel' does this, but the package (and many other
;; rustic packages) must be loaded in order for them to take effect. To lazy