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

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

Signature

(lua-ts--nested-function-end-matcher NODE &rest _)

Documentation

Matches if NODE is the end of a nested function.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-ts-mode.el.gz
(defun lua-ts--nested-function-end-matcher (node &rest _)
  "Matches if NODE is the `end' of a nested function."
  (save-excursion
    (goto-char (treesit-node-start node))
    (treesit-beginning-of-defun)
    (looking-at "function[[:space:]]*")))