Function: web-mode-block-next-position

web-mode-block-next-position is a natively compiled function defined in web-mode.el.

Signature

(web-mode-block-next-position &optional POS LIMIT)

Source Code

;; Defined in /nix/store/2qgnz1rp30nzfz6w0apx4kdm14if1bbs-emacs-packages-deps/share/emacs/site-lisp/elpa/web-mode-20260831.219/web-mode.el
(defun web-mode-block-next-position (&optional pos limit)
  (unless pos (setq pos (point)))
  (unless limit (setq limit (point-max)))
  (cond
    ((and (get-text-property pos 'block-side)
          (setq pos (web-mode-block-end-position pos))
          (< pos (point-max))
          (setq pos (1+ pos)))
     (unless (get-text-property pos 'block-beg)
       (setq pos (next-single-property-change pos 'block-side)))
     )
    (t
     (setq pos (next-single-property-change pos 'block-side)))
    ) ;cond
  (if (and pos (<= pos limit)) pos nil))