antlr-electric-character

antlr-electric-character is an interactive compiled Lisp function in `antlr-mode.el'.


(antlr-electric-character &optional ARG)

Insert the character you type and indent the current line.
Insert the character like `self-insert-command' and indent the current
line as `antlr-indent-command' does. Do not indent the line if

* this command is called with a prefix argument ARG,
* there are characters except whitespaces between point and the
beginning of the line, or
* point is not inside a normal grammar code, { and } are also OK in
actions.

This command is useful for a character which has some special meaning in
ANTLR's syntax and influences the auto indentation, see
`antlr-indent-item-regexp'.