;;; Installation:
-;; This file requires Emacs-20.3, XEmacs-20.4 or higher and package cc-mode.
-
;; If antlr-mode is not part of your distribution, put this file into your
;; load-path and the following into your init file:
;; (autoload 'antlr-mode "antlr-mode" nil t)
;; (add-hook 'speedbar-load-hook ; would be too late in antlr-mode.el
;; (lambda () (speedbar-add-supported-extension ".g")))
-;; I strongly recommend to use font-lock with a support mode like
-;; jit-lock (Emacs) / lazy-shot (XEmacs).
-
;; To customize, use menu item "Antlr" -> "Customize Antlr".
;;; Code:
;;;===========================================================================
-;;; Syntax functions -- Emacs vs XEmacs dependent, part 1
+;;; Syntax functions
;;;===========================================================================
;;;===========================================================================
comment-start-skip "/\\*+ *\\|// *")
;; various -----------------------------------------------------------------
(set (make-local-variable 'font-lock-defaults) antlr-font-lock-defaults)
- (when (featurep 'xemacs)
- (easy-menu-add antlr-mode-menu))
(set (make-local-variable 'imenu-create-index-function)
#'antlr-imenu-create-index-function)
(set (make-local-variable 'imenu-generic-expression) t) ; fool stupid test