diff options
Diffstat (limited to 'Completion/Base')
-rw-r--r-- | Completion/Base/_match_pattern | 31 | ||||
-rw-r--r-- | Completion/Base/_match_test | 15 |
2 files changed, 0 insertions, 46 deletions
diff --git a/Completion/Base/_match_pattern b/Completion/Base/_match_pattern deleted file mode 100644 index c5debc0b9..000000000 --- a/Completion/Base/_match_pattern +++ /dev/null @@ -1,31 +0,0 @@ -#autoload - -# This function is called from functions that do matching whenever they -# need to build a pattern that is used to match possible completions. -# It gets the name of the calling function and two names of parameters -# as arguments. The first one is used in the calling function to build -# the pattern used for matching possible completions. The content of this -# parameter on entry to this function is the string taken from the line. -# Here it parameter should be changed to a pattern that matches words as -# the match specs currently in use do. -# In the calling function this pattern may be changed again or used only -# in parts. The second parameter whose name is given as the third argument -# allows to give pattern flags liek `(#l)' that are to be used whenever -# matching is done. -# -# As an example, if you have global match specifications like: -# -# compctl -M 'm:{a-z}={A-Z}' 'm:{a-z}={A-Z} r:|[.-]=* r:|=*' -# -# This function would look like: -# -# eval "${3}='(#l)'" -# [[ MATCHER -eq 2 ]] && eval "$1='${(P)2:gs/./*./:gs/-/*-/}'" -# -# The first line makes sure that matching is done case-insensitive as -# specified by `m:{a-z}={A-Z}'. The second line replaces dots and hyphens -# in the given string by patterns matching any characters before them, -# like the `r:|[.-]=* r:|=*'. To make this work, the function `_match_test' -# would have to be changed to `(( MATCHERS <= 2 ))' -# -# The default implementation of this function is empty. diff --git a/Completion/Base/_match_test b/Completion/Base/_match_test deleted file mode 100644 index e8b6e6424..000000000 --- a/Completion/Base/_match_test +++ /dev/null @@ -1,15 +0,0 @@ -#autoload - -# This function is called at the beginning of functions that do matching in -# shell code. It should test the value of the `MATCHER' special parameter -# and return non-zero if the calling function should try to generate matches -# for the global match specification in use. -# -# This function gets one argument, the name of the function calling it. -# -# If you have a global match specification with more than one set of patterns -# you may want to modify this function to return non-zero for all of your -# match specifications and modify the function `_match_pattern' to build the -# pattern to use in the calling function. - -(( MATCHER == 1 )) |