Variable: treesit-language-at-point-function
treesit-language-at-point-function is a buffer-local variable defined
in treesit.el.gz.
Documentation
A function that returns the language at point.
This is used by treesit-language-at, which is used by various
functions to determine which parser to use at point.
The function is called with one argument, the position of point.
In general, this function should call treesit-node-at with an
explicit language (usually the host language), and determine the
language at point using the type of the returned node.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defvar-local treesit-language-at-point-function
#'treesit-language-at-point-default
"A function that returns the language at point.
This is used by `treesit-language-at', which is used by various
functions to determine which parser to use at point.
The function is called with one argument, the position of point.
In general, this function should call `treesit-node-at' with an
explicit language (usually the host language), and determine the
language at point using the type of the returned node.")