sh-imenu-generic-expression

sh-imenu-generic-expression is a variable defined in `sh-script.el'.
Its value is

((sh (nil "^\\s-*function\\s-+\\([[:alpha:]_][[:alnum:]_]*\\)\\s-*\\(?:()\\)?" 1) (nil "^\\s-*\\([[:alpha:]_][[:alnum:]_]*\\)\\s-*()" 1)))


Documentation:
Alist of regular expressions for recognizing shell function definitions.
See `sh-feature' and `imenu-generic-expression'.

You can customize this variable.

This variable was introduced, or its default value was changed, in version 20.4 of Emacs.