Function: hl-todo--search
hl-todo--search is a natively compiled function defined in hl-todo.el.
Signature
(hl-todo--search &optional REGEXP BOUND BACKWARD)
Documentation
Search for keyword REGEXP, optionally up to BOUND and BACKWARD.
If REGEXP is not given, it defaults to the return value of the
function hl-todo--regexp(var)/hl-todo--regexp(fun).
Source Code
;; Defined in /nix/store/b97f5zr6snxdbh1bgqmj50mq949vd13i-emacs-packages-deps/share/emacs/site-lisp/elpa/hl-todo-20261001.1547/hl-todo.el
(defun hl-todo--search (&optional regexp bound backward)
"Search for keyword REGEXP, optionally up to BOUND and BACKWARD.
If REGEXP is not given, it defaults to the return value of the
function `hl-todo--regexp'."
(unless regexp
(setq regexp (hl-todo--regexp)))
(cl-block nil
(while (let ((case-fold-search nil)
(syntax-ppss-table (syntax-table)))
(with-syntax-table hl-todo-syntax-table
(funcall (if backward #'re-search-backward #'re-search-forward)
regexp bound t)))
(cond ((or (apply #'derived-mode-p hl-todo-text-modes)
(hl-todo--inside-comment-or-string-p))
(cl-return t))
((and bound (funcall (if backward #'<= #'>=) (point) bound))
(cl-return nil))))))