aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/sh-script.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 375806068d6..d99e3130870 100644
--- a/lisp/progmodes/sh-script.el
+++ b/lisp/progmodes/sh-script.el
@@ -321,10 +321,14 @@ shell it really is."
321(defcustom sh-imenu-generic-expression 321(defcustom sh-imenu-generic-expression
322 `((sh 322 `((sh
323 . ((nil "^\\s-*\\(function\\s-+\\)?\\([A-Za-z_][A-Za-z_0-9]+\\)\\s-*()" 2)))) 323 . ((nil "^\\s-*\\(function\\s-+\\)?\\([A-Za-z_][A-Za-z_0-9]+\\)\\s-*()" 2))))
324 "*Regular expression for recognizing shell function definitions. 324 "*Alist of regular expressions for recognizing shell function definitions.
325See `sh-feature'." 325See `sh-feature' and `imenu-generic-expression'."
326 :type '(repeat (cons (symbol :tag "Shell") 326 :type '(alist :key-type (symbol :tag "Shell")
327 regexp)) 327 :value-type (alist :key-type (choice :tag "Title"
328 string
329 (const :tag "None" nil))
330 :value-type
331 (repeat :tag "Regexp, index..." sexp)))
328 :group 'sh-script 332 :group 'sh-script
329 :version "20.4") 333 :version "20.4")
330 334