Function: web-mode-scan-engine-comments

web-mode-scan-engine-comments is a natively compiled function defined in web-mode.el.

Signature

(web-mode-scan-engine-comments REG-BEG REG-END TAG-START TAG-END)

Documentation

Scan engine comments (mako, django).

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-scan-engine-comments (reg-beg reg-end tag-start tag-end)
  "Scan engine comments (mako, django)."
  (save-excursion
    (let (beg end (continue t))
      (goto-char reg-beg)
      (while (and continue
                  (< (point) reg-end)
                  (re-search-forward tag-start reg-end t))
        (goto-char (match-beginning 0))
        (setq beg (point))
        (if (not (re-search-forward tag-end reg-end t))
            (setq continue nil)
            (setq end (point))
            (remove-list-of-text-properties beg end web-mode-scan-properties)
            (add-text-properties beg end '(block-side t block-token comment))
            (put-text-property beg (1+ beg) 'block-beg 0)
            (put-text-property (1- end) end 'block-end t)
            ) ;if
        ) ;while
      )))