]> git.eshelyaron.com Git - emacs.git/commitdiff
(sh-font-lock-keywords): Use font-lock-negation-char-face.
authorDaniel Pfeiffer <occitan@esperanto.org>
Thu, 5 May 2005 19:03:32 +0000 (19:03 +0000)
committerDaniel Pfeiffer <occitan@esperanto.org>
Thu, 5 May 2005 19:03:32 +0000 (19:03 +0000)
lisp/progmodes/sh-script.el

index 1a87dcaad0f8d5e1bf864dc8fb928854f369056f..55ea460e421d867eca8a2c85cfdb763c84f19b74 100644 (file)
@@ -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