From 56925c24cf5fbf5e919c88b50070777415c7f667 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 2 Apr 2001 11:23:46 +0000 Subject: moved from Completion/Base/_math --- Completion/Zsh/Context/_math | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Completion/Zsh/Context/_math (limited to 'Completion/Zsh/Context') 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 -- cgit 1.4.1