# HG changeset patch # User Daniel Pfeiffer # Date 1115319812 0 # Node ID 2922c607db05cbf55f59529e27dcdd375316b0d4 # Parent bd033c2d7fd4b5916b9ae86a1876535be1deeb52 (sh-font-lock-keywords): Use font-lock-negation-char-face. diff -r bd033c2d7fd4 -r 2922c607db05 lisp/progmodes/sh-script.el --- a/lisp/progmodes/sh-script.el Thu May 05 19:02:47 2005 +0000 +++ b/lisp/progmodes/sh-script.el Thu May 05 19:03:32 2005 +0000 @@ -827,7 +827,9 @@ ;; 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