Mercurial > emacs
changeset 20900:bab0b53038ee
(sh-font-lock-keywords): Fontify sh-style function names in declarations.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sun, 15 Feb 1998 00:30:24 +0000 |
parents | d1f6ac340403 |
children | 3d355fb3b30f |
files | lisp/progmodes/sh-script.el |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/sh-script.el Sat Feb 14 22:46:12 1998 +0000 +++ b/lisp/progmodes/sh-script.el Sun Feb 15 00:30:24 1998 +0000 @@ -609,8 +609,13 @@ (rc eval identity es) (sh eval sh-append shell + ;; Variable names. '("\\$\\({#?\\)?\\([A-Za-z_][A-Za-z0-9_]*\\|[-#?@!]\\)" 2 - font-lock-variable-name-face)) + font-lock-variable-name-face) + ;; 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))) ;; The next entry is only used for defining the others (shell eval sh-append executable-font-lock-keywords