Variable: antlr-font-lock-maximum-decoration
antlr-font-lock-maximum-decoration is a customizable variable defined
in antlr-mode.el.gz.
Value
inherit
Documentation
The maximum decoration level for fontifying actions.
Value none means, do not fontify actions, just normal grammar code
according to antlr-font-lock-additional-keywords. Value inherit
means, use value of font-lock-maximum-decoration. Any other value is
interpreted as in font-lock-maximum-decoration with no level-0
fontification, see antlr-font-lock-keywords-alist.
While calculating the decoration level for actions, major-mode is
bound to antlr-language. For example, with value
((java-mode . 2) (c++-mode . 0))
Java actions are fontified with level 2 and C++ actions are not
fontified at all.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
;;;===========================================================================
;;; font-lock
;;;===========================================================================
(defcustom antlr-font-lock-maximum-decoration 'inherit
"The maximum decoration level for fontifying actions.
Value `none' means, do not fontify actions, just normal grammar code
according to `antlr-font-lock-additional-keywords'. Value `inherit'
means, use value of `font-lock-maximum-decoration'. Any other value is
interpreted as in `font-lock-maximum-decoration' with no level-0
fontification, see `antlr-font-lock-keywords-alist'.
While calculating the decoration level for actions, `major-mode' is
bound to `antlr-language'. For example, with value
((java-mode . 2) (c++-mode . 0))
Java actions are fontified with level 2 and C++ actions are not
fontified at all."
:type '(choice (const :tag "None" none)
(const :tag "Inherit" inherit)
(const :tag "Default" nil)
(const :tag "Maximum" t)
(integer :tag "Level" 1)
(repeat :menu-tag "Mode specific" :tag "Mode specific"
:value ((t . t))
(cons :tag "Instance"
(radio :tag "Mode"
(const :tag "All" t)
(symbol :tag "Name"))
(radio :tag "Decoration"
(const :tag "Default" nil)
(const :tag "Maximum" t)
(integer :tag "Level" 1))))))