Function: lua-ts--last-arg-function-call-matcher

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

Signature

(lua-ts--last-arg-function-call-matcher NODE PARENT &rest _)

Documentation

Matches if NODE's PARENT is the last argument in a function call.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/lua-ts-mode.el.gz
(defun lua-ts--last-arg-function-call-matcher (node parent &rest _)
  "Matches if NODE's PARENT is the last argument in a function call."
  (let* ((g-parent (lua-ts--g-parent node))
         (last (1- (treesit-node-child-count g-parent t))))
    (treesit-node-eq parent (seq-elt (treesit-node-children g-parent t) last))))