Variable: antlr-language-limit-n-regexp

antlr-language-limit-n-regexp is a customizable variable defined in antlr-mode.el.gz.

Value

(30000
 . "\\<language[     ]*=[    ]*[\"']?\\([A-Z][A-Za-z_0-9]*\\)[\"']?")

Documentation

Used to set a reasonable value for antlr-language.

Looks like (LIMIT . REGEXP). Search for REGEXP from the beginning of the buffer to LIMIT and use the first group in the matched string to set the language according to antlr-language-list.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/antlr-mode.el.gz
(defcustom antlr-language-limit-n-regexp ; TODO: rename? (also for tool-version)
  ;; actually, it is in v2 "L" only, in v3/v4 'L' only
  '(30000 . "\\<language[ \t]*=[ \t]*[\"']?\\([A-Z][A-Za-z_0-9]*\\)[\"']?")
  "Used to set a reasonable value for `antlr-language'.
Looks like \(LIMIT .  REGEXP).  Search for REGEXP from the beginning of
the buffer to LIMIT and use the first group in the matched string to set
the language according to `antlr-language-list'."
  :type '(cons (choice :tag "Limit" (const :tag "No" nil) (integer :value 0))
	       regexp))