1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-03 10:21:46 +02:00
zsh/Completion/Zsh/Context/_math
2013-03-17 20:53:44 +00:00

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'