mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-03 10:21:46 +02:00
14 lines
483 B
Text
14 lines
483 B
Text
#compdef -math- let
|
|
|
|
if [[ "$PREFIX" = *[^a-zA-Z0-9_]* ]]; then
|
|
IPREFIX="$IPREFIX${PREFIX%%[a-zA-Z0-9_]#}"
|
|
PREFIX="${PREFIX##*[^a-zA-Z0-9_]}"
|
|
fi
|
|
if [[ "$SUFFIX" = *[^a-zA-Z0-9_]* ]]; then
|
|
ISUFFIX="${SUFFIX##[a-zA-Z0-9_]#}$ISUFFIX"
|
|
SUFFIX="${SUFFIX%%[^a-zA-Z0-9_]*}"
|
|
fi
|
|
|
|
_alternative 'math-parameters:math parameter: _math_params' \
|
|
'user-math-functions:user math function: _user_math_func' \
|
|
'module-math-functions:math function from zsh/mathfunc: _module_math_func'
|