Function: antlr-inside-rule-p

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

Signature

(antlr-inside-rule-p)

Documentation

Non-nil if point is inside a grammar rule.

A grammar class header and the file prelude are also considered as a rule.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
;;;===========================================================================
;;;  Parse grammar files (commands)
;;;===========================================================================
;; No (interactive "_") in Emacs... use `zmacs-region-stays'.

(defun antlr-inside-rule-p ()
  "Non-nil if point is inside a grammar rule.
A grammar class header and the file prelude are also considered as a
rule."
  (save-excursion
    (with-syntax-table antlr-action-syntax-table
      (not (antlr-outside-rule-p)))))