]> git.eshelyaron.com Git - emacs.git/commit
Refactor treesit--install-language-grammar-1
authorYuan Fu <casouri@gmail.com>
Sat, 28 Dec 2024 22:41:55 +0000 (14:41 -0800)
committerEshel Yaron <me@eshelyaron.com>
Sat, 4 Jan 2025 20:25:35 +0000 (21:25 +0100)
commit2660f9777c45142f7f57a06c3bf91f3c27524118
tree63ba993ef180a32e568d688fdd4180a74a2e49ee
parentcd89aef26451d533feab8e9f201b99c1996227b8
Refactor treesit--install-language-grammar-1

Separate treesit--install-language-grammar-1 into two functions,
one clones the repository, the other builds and installs the
grammar.

* lisp/treesit.el (treesit--install-language-grammar-1):
Refactor out treesit--build-grammar.
(treesit--build-grammar): New function.
(treesit--language-git-revision): Now takes REPO-DIR as an
argument.

(cherry picked from commit e2f791715299d97f401a38c75fa11bb51fdb8292)
lisp/treesit.el