Variable: antlr-rule-postlude-skip-alist

antlr-rule-postlude-skip-alist is a variable defined in antlr-mode.el.gz.

Value

(("exception" 1 . t) ("import" antlr-skip-import-statement)
 ("options" 2) ("tokens" 2) ("finally" 2) ("channels" 2) ("catch" 3)
 ("scope" 3))

Documentation

Alist of keywords after the ';' which still belong to the grammar rule.

Each element looks like
  (KEYWORD FUNCTION ARGS...)
or
  (KEYWORD SEXPS-COUNT OPTIONALP)

After the ';' ending a rule body, function antlr-skip-rule-postlude skips whitespace and comments, and check the text after point against antlr-rule-postlude-skip-regexp. While there is a match,

- if regexp group 1 has not been matched: we set point the end of the,
  match, and skip the next sexpr, whitespace and comments

- if the string matched by regexp group 1 is not the car of an element
  of antlr-rule-postlude-skip-alist: we skip one sexpr - which should
  move point to the end of the whole match,

- when the corresponding element of antlr-rule-postlude-skip-alist
  is of the first form, we call FUNCTION with arguments ARGS - this
  the function should return the position after a match and move
  point to the non whitespace/comment position after that

- when the corresponding element of antlr-rule-postlude-skip-alist
  is of the second form, we skip SEXPS-COUNT balanced expression
  (including the keyword itself)

The value might be tool-dependent, see antlr-tool-version-variables.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defvar antlr-rule-postlude-skip-alist antlr-rule-postlude-skip-alist--const
  "Alist of keywords after the ';' which still belong to the grammar rule.
Each element looks like
  (KEYWORD FUNCTION ARGS...)
or
  (KEYWORD SEXPS-COUNT OPTIONALP)

After the ';' ending a rule body, function `antlr-skip-rule-postlude'
skips whitespace and comments, and check the text after point against
`antlr-rule-postlude-skip-regexp'.  While there is a match,

- if regexp group 1 has not been matched: we set point the end of the,
  match, and skip the next sexpr, whitespace and comments

- if the string matched by regexp group 1 is not the car of an element
  of `antlr-rule-postlude-skip-alist': we skip one sexpr - which should
  move point to the end of the whole match,

- when the corresponding element of `antlr-rule-postlude-skip-alist'
  is of the first form, we call FUNCTION with arguments ARGS - this
  the function should return the position after a match and move
  point to the non whitespace/comment position after that

- when the corresponding element of `antlr-rule-postlude-skip-alist'
  is of the second form, we skip SEXPS-COUNT balanced expression
  (including the keyword itself)

The value might be tool-dependent, see `antlr-tool-version-variables'.")