From 7f7497c531841c7fa53bfa2618c7d5592abddfda Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Thu, 2 Dec 1999 11:32:09 +0000 Subject: zsh-workers/8851 --- Doc/Zsh/mod_complist.yo | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Doc/Zsh/mod_complist.yo') diff --git a/Doc/Zsh/mod_complist.yo b/Doc/Zsh/mod_complist.yo index ca8fa2be3..54211674c 100644 --- a/Doc/Zsh/mod_complist.yo +++ b/Doc/Zsh/mod_complist.yo @@ -76,6 +76,24 @@ enditem() Apart from these strings, the var(name) may also be an asterisk (`tt(*)') followed by any string. The var(value) given for such a string will be used for all files whose name ends with the string. +The var(name) may also be a equal sign (`tt(=)') followed by a +pattern. The var(value) given for this pattern will be used for all +matches (not only filenames) that whose display string are matched by +the pattern. Definitions for both of these take precedence over the +values defined for file types and the form with the leading asterisk +takes precedence over the form with the leading equal sign. + +All three forms of var(name) may be preceded by a pattern in +parentheses. If such a pattern is given, the var(value) will be used +only for matches in groups whose names are matched by the pattern +given in the parentheses. E.g. `tt((g*)~m*=43)' says to highlight all +matches beginning with `tt(m)' in groups whose names begin with +`tt(g)' using the color code `tt(43)'. In case of the `tt(lc)', +`tt(rc)', and `tt(ec)' codes, the group pattern is ignored. + +Note also that all patterns are tried in the order in which they +appear in the parameter value until the first one matches which is +then used. When printing a match, the code prints the value of tt(lc), the value for the file-type or the last matching specification with a `tt(*)', -- cgit 1.4.1