about summary refs log tree commit diff
path: root/Completion/Zsh/Context/_math
blob: 278189ebef8065436a03dccefaba72e8df988b6b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#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

_parameters -g '(integer|float)*' || _parameters