Variable: antlr-base-offset-alist
antlr-base-offset-alist is a variable defined in antlr-mode.el.gz.
Value
((:header . 0) (:body . 2) (:exception . 1))
Documentation
Influence the rule indentation of antlr-indent-line.
The default indentation of grammar lines are calculated by
c-basic-offset, multiplied by:
- the level of the paren/brace/bracket depth,
- plus 0/2/1, depending on the position POS-SYMBOL inside the rule:
:header, :body, :exception part, customized by this variable.
- minus 1 if antlr-indent-item-regexp matches the beginning of the
line starting from the first non-whitespace.
Each element in this list is an element (POS-SYMBOL . OFFSET).
The following POS-SYMBOL can be:
- :header, the rule header before antlr-rule-body-start-op,
- :colon for antlr-rule-body-start-op, the character starting
the rule body,
- `:body`, the rule body starting at antlr-rule-body-start-op
and ending with ';'
- :exception, the part of the rule after the ';', see function
antlr-skip-rule-postlude.
:header, `:body` and :exception must appear in the alist,
:colon is optional and its OFFSET defaults to the one from `:body`.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defvar antlr-base-offset-alist ; TODO: make a defcustom?
'((:header . 0) (:body . 2) (:exception . 1))
"Influence the rule indentation of `antlr-indent-line'.
The default indentation of grammar lines are calculated by
`c-basic-offset', multiplied by:
- the level of the paren/brace/bracket depth,
- plus 0/2/1, depending on the position POS-SYMBOL inside the rule:
:header, :body, :exception part, customized by this variable.
- minus 1 if `antlr-indent-item-regexp' matches the beginning of the
line starting from the first non-whitespace.
Each element in this list is an element (POS-SYMBOL . OFFSET).
The following POS-SYMBOL can be:
- `:header', the rule header before `antlr-rule-body-start-op',
- `:colon' for `antlr-rule-body-start-op', the character starting
the rule body,
- `:body`, the rule body starting at `antlr-rule-body-start-op'
and ending with ';'
- `:exception', the part of the rule after the ';', see function
`antlr-skip-rule-postlude'.
`:header', `:body` and `:exception' must appear in the alist,
`:colon' is optional and its OFFSET defaults to the one from `:body`.")