]> git.eshelyaron.com Git - emacs.git/commit
Add new type treesit-compiled-query
authorYuan Fu <casouri@gmail.com>
Tue, 14 Jun 2022 06:01:04 +0000 (23:01 -0700)
committerYuan Fu <casouri@gmail.com>
Tue, 14 Jun 2022 18:44:04 +0000 (11:44 -0700)
commit8f3b872e30cc1055b1c5d35acfcf1ef7d483b01e
tree429020abb7617471efffd8f61143f7729eee3b21
parenta73f2b9990465820d80c58ed25208b72731d410d
Add new type treesit-compiled-query

No intergration/interaction with the new type, just adding it.

* lisp/emacs-lisp/cl-preloaded.el (cl--typeof-types): Add new type.
* src/alloc.c (cleanup_vector): Add gc for the new type.
* src/data.c (Ftype_of): Add switch case for the new type.
(syms_of_data): Add symbols for the new type.
* src/lisp.h (DEFINE_GDB_SYMBOL_BEGIN): Add new type.
* src/treesit.c (Ftreesit_compiled_query_p): New function.
(syms_of_treesit): Add symbol for the new type.
* src/treesit.h (struct Lisp_TS_Query): New struct.
(TS_COMPILED_QUERY_P, XTS_COMPILED_QUERY, CHECK_TS_COMPILED_QUERY):
New macros.
* src/print.c (print_vectorlike): Add printing for the new type.
lisp/emacs-lisp/cl-preloaded.el
src/alloc.c
src/data.c
src/lisp.h
src/print.c
src/treesit.c
src/treesit.h