Function: nix-ts-mode--prev-sibling-not-comment

nix-ts-mode--prev-sibling-not-comment is a natively compiled function defined in nix-ts-mode.el.

Signature

(nix-ts-mode--prev-sibling-not-comment NODE PARENT BOL &rest _)

Source Code

;; Defined in /nix/store/gfg1ybfpvhh7fr396dh1axr72lcm71n0-emacs-packages-deps/share/emacs/site-lisp/elpa/nix-ts-mode-20260705.1600/nix-ts-mode.el
(defun nix-ts-mode--prev-sibling-not-comment (node parent bol &rest _)
  (let ((tmp (treesit-node-prev-sibling node t)))
    (while (and tmp
                (string= "comment" (treesit-node-type tmp)))
      (setf tmp (treesit-node-prev-sibling tmp t)))
    (treesit-node-start tmp)))