about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-02 14:05:59 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-02 14:05:59 +0000
commit158204bce06cc89519fe99dc38f76f2251bbaea3 (patch)
tree74ae714eeab01fa58e5895229f2ffc13bbb3bc02 /Doc
parent7f7497c531841c7fa53bfa2618c7d5592abddfda (diff)
downloadzsh-158204bce06cc89519fe99dc38f76f2251bbaea3.tar.gz
zsh-158204bce06cc89519fe99dc38f76f2251bbaea3.tar.xz
zsh-158204bce06cc89519fe99dc38f76f2251bbaea3.zip
zsh-workers/8852
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/mod_complist.yo15
1 files changed, 14 insertions, 1 deletions
diff --git a/Doc/Zsh/mod_complist.yo b/Doc/Zsh/mod_complist.yo
index 54211674c..02ae210c5 100644
--- a/Doc/Zsh/mod_complist.yo
+++ b/Doc/Zsh/mod_complist.yo
@@ -78,11 +78,24 @@ Apart from these strings, the var(name) may also be an asterisk
 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
+matches (not only filenames) 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.
 
+The last form also allows to color separate parts of the displayed
+strings using different colors. For this, the pattern has to use the
+`tt((#b))' globbing flag and pairs of parentheses surrounding the
+parts of the strings that are to be colored differently. In this case 
+the var(value) may consist of more than one color code separated by
+equal signs. The first code will be used for all parts for which no
+explicit code is specified and the following codes will be used for
+the parts matched by the sub-patterns in parentheses. For example,
+the specification `tt(=(#b)(?)*(?)=0=3=7)' will be used for all
+matches which are at least two characters long and will make the use
+the code `tt(3)' for the first character, `tt(7)' for the last
+character and `tt(0)' for the rest.
+
 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