* lisp/progmodes/sh-script.el (sh-imenu-generic-expression): Handle

function names with a single character.
This commit is contained in:
Masatake YAMATO 2013-04-20 03:50:28 +09:00
parent 863beb2713
commit 4d3268ba39
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2013-04-19 Masatake YAMATO <yamato@redhat.com>
* progmodes/sh-script.el (sh-imenu-generic-expression): Handle
function names with a single character.
2013-04-19 Dima Kogan <dima@secretsauce.net> (tiny change)
* progmodes/gud.el (gud-perldb-marker-filter): Understand position info

View file

@ -335,11 +335,11 @@ shell it really is."
. ((nil
;; function FOO
;; function FOO()
"^\\s-*function\\s-+\\\([[:alpha:]_][[:alnum:]_]+\\)\\s-*\\(?:()\\)?"
"^\\s-*function\\s-+\\\([[:alpha:]_][[:alnum:]_]*\\)\\s-*\\(?:()\\)?"
1)
;; FOO()
(nil
"^\\s-*\\([[:alpha:]_][[:alnum:]_]+\\)\\s-*()"
"^\\s-*\\([[:alpha:]_][[:alnum:]_]*\\)\\s-*()"
1)
)))
"Alist of regular expressions for recognizing shell function definitions.