Function: antlr-search-result
antlr-search-result is a byte-compiled function defined in
antlr-mode.el.gz.
Signature
(antlr-search-result LINE-REGEXP)
Documentation
Return point if last search is valid, or nil otherwise.
The search is not considered valid if point is inside actions, comments or strings, or if the beginning of the current line matches LINE-REGEXP if that is non-nil.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defsubst antlr-search-result (line-regexp)
"Return `point' if last search is valid, or nil otherwise.
The search is not considered valid if point is inside actions, comments
or strings, or if the beginning of the current line matches LINE-REGEXP
if that is non-nil."
(unless (antlr-syntactic-context)
(if (and line-regexp
(save-excursion
(beginning-of-line)
(looking-at line-regexp))
(<= (point) (match-end 0) (1+ (point))))
nil
(point))))