]> git.eshelyaron.com Git - emacs.git/commit
Accept versioned tree-sitter language grammar files
authorYuan Fu <casouri@gmail.com>
Mon, 24 Apr 2023 06:55:22 +0000 (23:55 -0700)
committerYuan Fu <casouri@gmail.com>
Mon, 24 Apr 2023 17:38:40 +0000 (10:38 -0700)
commit8f71c1546dfc70ae7e646834c8d8baf23d4b4d90
tree8ff80a536f13a40d8522731ca8ad6b0614072d52
parent99add09d5e16a4fef752abedc3ee96989f1b9ae2
Accept versioned tree-sitter language grammar files

By discussion on emacs-devel, titled "Versioned Tree-sitter parser
libraries".

* src/treesit.c (Vtreesit_str_dot_0): New variable.
(treesit_load_language_push_for_each_suffix): Additionally look for
lib_base_name.0 and lib_base_name.0.0.
(syms_of_treesit): Initialize Vtreesit_str_dot_0.
src/treesit.c