From d5f2a89966b7936d09082a6c779e2fec9a42d354 Mon Sep 17 00:00:00 2001 From: Daniel Pfeiffer Date: Thu, 5 May 2005 19:03:32 +0000 Subject: [PATCH] (sh-font-lock-keywords): Use font-lock-negation-char-face. --- lisp/progmodes/sh-script.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index 1a87dcaad0f..55ea460e421 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -827,7 +827,9 @@ See `sh-feature'.") ;; Function names. ("^\\(\\sw+\\)[ \t]*(" 1 font-lock-function-name-face) ("\\<\\(function\\)\\>[ \t]*\\(\\sw+\\)?" - (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t))) + (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t)) + ("\\(?:^\\s *\\|[[();&|]\\s *\\|\\(?:\\s +-[ao]\\|if\\|else\\|then\\|while\\|do\\)\\s +\\)\\(!\\)" + 1 font-lock-negation-char-face)) ;; The next entry is only used for defining the others (shell sh-append executable-font-lock-keywords -- 2.39.2