Variable: treesit--query-cache
treesit--query-cache is a variable defined in treesit.el.gz.
Value
#s(hash-table test equal)
Documentation
Cache of compiled queries for font-lock/indentation.
They keys are (LANG . QUERY), where QUERY can be in string or sexp form;
the values are either compiled queries or error data (returned by
treesit-query-compile).
This table only stores actually (eagerly) compiled queries. (Normally, compiled query objects are compiled lazily upon first use.)
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
;; String form and sexp form will be keyed differently, but that's not a
;; big deal. We can't really use a weak table: it's possible that the
;; query won't be referenced if all major modes are closed; error data
;; isn't going to be referenced at all but we need to retend it.
(defvar treesit--query-cache (make-hash-table :test #'equal)
"Cache of compiled queries for font-lock/indentation.
They keys are (LANG . QUERY), where QUERY can be in string or sexp form;
the values are either compiled queries or error data (returned by
`treesit-query-compile').
This table only stores actually (eagerly) compiled queries. (Normally,
compiled query objects are compiled lazily upon first use.)")