]> git.eshelyaron.com Git - emacs.git/commit
Add Ftreesit_grammar_location
authorYuan Fu <casouri@gmail.com>
Wed, 28 Aug 2024 05:31:42 +0000 (22:31 -0700)
committerEshel Yaron <me@eshelyaron.com>
Sat, 14 Sep 2024 20:29:08 +0000 (22:29 +0200)
commitca7e4e58a0fb261d713678f38b56416880c27145
treef693478c0b433a4f422f16e7e3abfbd35a7df8c3
parent5ada5a59f7f346698cac761434a6fbce76b8f088
Add Ftreesit_grammar_location

* src/treesit.c (treesit_loaded_lang): New struct.
(treesit_load_language): Return a struct instead of just the language
object.  The struct contains both the language object and the path to
the shared library.
(Ftreesit_language_available_p, Ftreesit_language_abi_version)
(treesit_ensure_query_compiled, Ftreesit_parser_create): Update
call of treesit_load_language.
(Ftreesit_grammar_location): New function.

(cherry picked from commit 2a75693f24a631b0a2a366bdce1ca5cb0c38d215)
src/treesit.c