Function: antlr-search-backward

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

Signature

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

Documentation

Search backward from point for STRING.

Set point to the beginning 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-backward (string &optional line-regexp)
  "Search backward from point for STRING.
Set point to the beginning 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-backward string nil 'limit))
      (setq result (antlr-search-result line-regexp)))
    result))