(sh-font-lock-keywords): Fontify sh-style function names in declarations.

This commit is contained in:
Richard M. Stallman
1998-02-15 00:30:24 +00:00
parent 6bc7c7a2a7
commit 4d7ce99c2f

View File

@@ -609,8 +609,13 @@ See `sh-feature'.")
(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