1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-04 20:40:57 +02:00

unposted: improve recognition of parameter arguments in zmathfuncdef

This commit is contained in:
Peter Stephenson 2006-04-23 22:47:01 +00:00
parent 7932a719c3
commit 9b844cfe73
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2006-04-23 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: Functions/Misc/zmathfuncdef: improve recognition
of parameter expansions.
2006-04-23 Clint Adams <clint@zsh.org>
* Francisco Borges: users/10162: updated _aptitude.

View file

@ -23,7 +23,7 @@ integer iarg=0 ioptarg
local body=$2
# count compulsory arguments
while [[ $body = *'$'$((iarg+1))(|[^[:digit:]]*) ]]; do
while [[ $body = *'$'(\{|)$((iarg+1))(|[^:[:digit:]]*) ]]; do
(( iarg++ ))
done