Function: antlr-search-forward

antlr-search-forward is a byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-search-forward STRING &optional LINE-REGEXP)

Documentation

Search forward from point for STRING.

Set point to the end of the occurrence found, and return point. Return nil if no occurrence was found. Do not search within comments, strings and actions/semantic predicates. See function antlr-search-result for the optional arg LINE-REGEXP.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-search-forward (string &optional line-regexp)
  "Search forward from point for STRING.
Set point to the end of the occurrence found, and return point.  Return
nil if no occurrence was found.  Do not search within comments, strings
and actions/semantic predicates.
See function `antlr-search-result' for the optional arg LINE-REGEXP."
  (let ((result nil))
    (while (and (null result) (search-forward string nil 'limit))
      (setq result (antlr-search-result line-regexp)))
    result))