Function: antlr-re-search-forward
antlr-re-search-forward is a byte-compiled function defined in
antlr-mode.el.gz.
Signature
(antlr-re-search-forward REGEXP BOUND)
Documentation
Search forward from point for regular expression REGEXP.
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. BOUND bounds the search; it is a
buffer position. See also the functions match-beginning, match-end
and replace-match.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-re-search-forward (regexp bound)
"Search forward from point for regular expression REGEXP.
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. BOUND bounds the search; it is a
buffer position. See also the functions `match-beginning', `match-end'
and `replace-match'."
(let ((continue t))
(while (and (re-search-forward regexp bound 'limit)
(save-match-data
(or (antlr-syntactic-context) (setq continue nil)))))
(if continue nil (point))))