Function: web-mode-string-continue-p

web-mode-string-continue-p is a natively compiled function defined in web-mode.el.

Signature

(web-mode-string-continue-p REG-BEG)

Documentation

Is point preceded by an odd number of backslashes?

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-string-continue-p (reg-beg)
  "Is `point' preceded by an odd number of backslashes?"
  (let ((p (1- (point))))
    (while (and (< reg-beg p) (eq ?\\ (char-before p)))
      (setq p (1- p)))
    (= (mod (- (point) p) 2) 0)))