From a832076ca1cfaa3cdc30b7d9e743df4f3e92e3a1 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 11 Sep 2025 13:40:30 -0400 Subject: [PATCH] fix(python): treesit: use v0.23.6 on <=30 Newer versions of this grammar fails on Emacs <=30. Fix: #8503 --- modules/lang/python/config.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 527c0cfb4..afe69fe9c 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -21,7 +21,8 @@ (when (modulep! +tree-sitter) (set-tree-sitter! 'python-mode 'python-ts-mode - '((python :url "https://github.com/tree-sitter/tree-sitter-python" + `((python :url "https://github.com/tree-sitter/tree-sitter-python" + :rev ,(if (< (treesit-library-abi-version) 15) "v0.23.6") :commit "bffb65a8cfe4e46290331dfef0dbf0ef3679de11")))) :config