Function: lua-ts--nested-function-last-function-matcher

lua-ts--nested-function-last-function-matcher is a byte-compiled function defined in lua-ts-mode.el.gz.

Signature

(lua-ts--nested-function-last-function-matcher N PARENT &rest _)

Documentation

Matches if PARENT is the last nested function.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-ts-mode.el.gz
(defun lua-ts--nested-function-last-function-matcher (_n parent &rest _)
  "Matches if PARENT is the last nested function."
  (let ((sparse-tree
         (treesit-induce-sparse-tree parent #'lua-ts--function-definition-p)))
    (= 1 (length (cadr sparse-tree)))))