diff options
| author | Richard M. Stallman | 1998-02-15 00:30:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-02-15 00:30:24 +0000 |
| commit | 4d7ce99c2f1b855e3ea9f7f828ac1d7ceaaa46b4 (patch) | |
| tree | da072051360a221bf59ad2aaffd8c25f0d935cf0 | |
| parent | 6bc7c7a2a7e5464e28c268c4087e69c9233237e4 (diff) | |
| download | emacs-4d7ce99c2f1b855e3ea9f7f828ac1d7ceaaa46b4.tar.gz emacs-4d7ce99c2f1b855e3ea9f7f828ac1d7ceaaa46b4.zip | |
(sh-font-lock-keywords): Fontify sh-style function names in declarations.
| -rw-r--r-- | lisp/progmodes/sh-script.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index bc106f82b30..32273e66d1c 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el | |||
| @@ -609,8 +609,13 @@ See `sh-feature'.") | |||
| 609 | (rc eval identity es) | 609 | (rc eval identity es) |
| 610 | 610 | ||
| 611 | (sh eval sh-append shell | 611 | (sh eval sh-append shell |
| 612 | ;; Variable names. | ||
| 612 | '("\\$\\({#?\\)?\\([A-Za-z_][A-Za-z0-9_]*\\|[-#?@!]\\)" 2 | 613 | '("\\$\\({#?\\)?\\([A-Za-z_][A-Za-z0-9_]*\\|[-#?@!]\\)" 2 |
| 613 | font-lock-variable-name-face)) | 614 | font-lock-variable-name-face) |
| 615 | ;; Function names. | ||
| 616 | '("^\\(\\sw+\\)[ \t]*(" 1 font-lock-function-name-face) | ||
| 617 | '("\\<\\(function\\)\\>[ \t]*\\(\\sw+\\)?" | ||
| 618 | (1 font-lock-keyword-face) (2 font-lock-function-name-face nil t))) | ||
| 614 | 619 | ||
| 615 | ;; The next entry is only used for defining the others | 620 | ;; The next entry is only used for defining the others |
| 616 | (shell eval sh-append executable-font-lock-keywords | 621 | (shell eval sh-append executable-font-lock-keywords |