Function: web-mode-block-ends-with
web-mode-block-ends-with is a natively compiled function defined in
web-mode.el.
Signature
(web-mode-block-ends-with REGEXP &optional POS)
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-ends-with (regexp &optional pos)
(unless pos (setq pos (point)))
(save-excursion
(goto-char pos)
(save-match-data
(if (stringp regexp)
(and (web-mode-block-end)
(progn (backward-char) t)
(web-mode-block-skip-blank-backward)
(progn (forward-char) t)
(looking-back regexp (point-min)))
(let ((pair regexp)
(block-beg (web-mode-block-beginning-position pos))
(block-end (web-mode-block-end-position pos)))
(and (web-mode-block-end)
(web-mode-block-sb (car pair) block-beg)
(not (web-mode-sf (cdr pair) block-end)))
) ;let
) ;if
)))