X-Git-Url: https://gitweb.michael.orlitzky.com/?a=blobdiff_plain;f=nagios-mode.el;h=6b1bd3beac87315bcb43ce67fdcdb3271af18e5e;hb=2506187c2e73f110af2f09e4f6e410652cc4cc44;hp=126cb45fc4922169e674f389e24093ae4f0a99cf;hpb=0355f91c8ed69043beedfcbb83e514152560be96;p=nagios-mode.git diff --git a/nagios-mode.el b/nagios-mode.el index 126cb45..6b1bd3b 100644 --- a/nagios-mode.el +++ b/nagios-mode.el @@ -276,14 +276,7 @@ (cons nagios-special font-lock-keyword-face) (cons nagios-directives font-lock-variable-name-face) (cons nagios-macros font-lock-constant-face) - (cons nagios-definitions font-lock-function-name-face) - - ;; We have to (override) un-color the curly braces here because it's - ;; possible for them to become colored along with a definition - ;; if there is no space between the definition and the open - ;; brace. This has to come after the nagios-definitions, otherwise - ;; the font-locking will miss the definitions that end with a brace. - (cons "[{}]" '(0 nil t)) + (cons nagios-definitions '(1 font-lock-function-name-face)) ;; And comments take precedence over everything else. (cons nagios-comments '(0 font-lock-comment-delimiter-face t))) @@ -313,7 +306,7 @@ ;; Configure font locking. Set the defaults to something ;; sensible, defined earlier. (make-local-variable 'font-lock-defaults) - (setq font-lock-defaults '(nagios-font-lock-keywords nil t)) + (setq font-lock-defaults '(nagios-font-lock-keywords t t)) ;; Keyboard Mapping (use-local-map nagios-mode-map)