diff options
Diffstat (limited to 'Completion/Zsh/Context/_math')
-rw-r--r-- | Completion/Zsh/Context/_math | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Completion/Zsh/Context/_math b/Completion/Zsh/Context/_math new file mode 100644 index 000000000..278189ebe --- /dev/null +++ b/Completion/Zsh/Context/_math @@ -0,0 +1,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 |