Function: web-mode-property-boundaries
web-mode-property-boundaries is a natively compiled function defined
in web-mode.el.
Signature
(web-mode-property-boundaries PROP &optional POS)
Documentation
property boundaries (cdr is 1+)
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-property-boundaries (prop &optional pos)
"property boundaries (cdr is 1+)"
(unless pos (setq pos (point)))
(let (beg end val)
(setq val (get-text-property pos prop))
(if (null val)
val
(if (or (bobp)
(not (eq (get-text-property (1- pos) prop) val)))
(setq beg pos)
(setq beg (previous-single-property-change pos prop))
(when (null beg) (setq beg (point-min))))
(if (or (eobp)
(not (eq (get-text-property (1+ pos) prop) val)))
(setq end pos)
(setq end (next-single-property-change pos prop))
(when (null end) (setq end (point-min))))
(cons beg end))))