Function: treesit-language-at
treesit-language-at is a byte-compiled function defined in
treesit.el.gz.
Signature
(treesit-language-at POSITION)
Documentation
Return the language at POSITION.
When there are multiple parsers that covers POSITION, determine
the most relevant parser (hence language) by their embed level.
If treesit-language-at-point-function is non-nil, return
the return value of that function instead.
Probably introduced at or before Emacs version 31.1.
Source Code
;; Defined in /usr/src/emacs/lisp/treesit.el.gz
(defun treesit-language-at (position)
"Return the language at POSITION.
When there are multiple parsers that covers POSITION, determine
the most relevant parser (hence language) by their embed level.
If `treesit-language-at-point-function' is non-nil, return
the return value of that function instead."
(funcall (or treesit-language-at-point-function
#'treesit-language-at-point-default)
position))