Function: antlr-end-of-rule
antlr-end-of-rule is an interactive and byte-compiled function defined
in antlr-mode.el.gz.
Signature
(antlr-end-of-rule &optional ARG)
Documentation
Move forward to next/end of rule. Do it ARG [default: 1] many times.
A grammar/class header and the file prelude are also considered a rule.
If antlr-end-of-defun-is-next is nil, move to next end of rule,
i.e. the end of the current rule with ARG = 1. Otherwise move
forward to the ARGth next rule.
Negative argument ARG means move back to ARGth preceding end of
rule. If ARG is zero, run antlr-end-of-body.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-end-of-rule (&optional arg)
"Move forward to next/end of rule. Do it ARG [default: 1] many times.
A grammar/class header and the file prelude are also considered a
rule.
If `antlr-end-of-defun-is-next' is nil, move to next end of rule,
i.e. the end of the current rule with ARG = 1. Otherwise move
forward to the ARGth next rule.
Negative argument ARG means move back to ARGth preceding end of
rule. If ARG is zero, run `antlr-end-of-body'."
(interactive "^p")
;; yes, there is a variable `end-of-defun-function', but `end-of-defun' does
;; far too much around the funcall of that variable (Emacs-24.4)
(if (zerop arg)
(antlr-end-of-body)
(antlr-next-rule arg (and antlr-end-of-defun-is-next (> arg 0)))))