Function: antlr-outside-rule-p

antlr-outside-rule-p is a byte-compiled function defined in antlr-mode.el.gz.

Signature

(antlr-outside-rule-p)

Documentation

Non-nil if point is outside a grammar rule.

Move to the beginning of the current rule if point is inside a rule.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defun antlr-outside-rule-p ()
  "Non-nil if point is outside a grammar rule.
Move to the beginning of the current rule if point is inside a rule."
  (let ((pos (point)))
    (antlr-next-rule -1 nil)            ; to end of previous rule
    (let ((between (or (bobp) (< (point) pos))))
      (antlr-c-forward-sws)
      (and between (> (point) pos) (goto-char pos)))))