Function: antlr-search-backward
antlr-search-backward is a byte-compiled function defined in
antlr-mode.el.gz.
Signature
(antlr-search-backward STRING)
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.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-search-backward (string)
"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."
;; WARNING: Should only be used with `antlr-action-syntax-table'!
(let ((continue t))
(while (and (search-backward string nil 'limit)
(if (eq (antlr-syntactic-context) 0) (setq continue nil) t)))
(if continue nil (point))))