about summary refs log tree commit diff
path: root/Doc/Zsh/mod_complist.yo
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-12-02 11:32:09 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-12-02 11:32:09 +0000
commit7f7497c531841c7fa53bfa2618c7d5592abddfda (patch)
tree37bc68e32ba11cd7123c42cd7f81ae9ec58c4953 /Doc/Zsh/mod_complist.yo
parenta4e44197ae0f6e237f118e5b30c01eb12c460ec4 (diff)
downloadzsh-7f7497c531841c7fa53bfa2618c7d5592abddfda.tar.gz
zsh-7f7497c531841c7fa53bfa2618c7d5592abddfda.tar.xz
zsh-7f7497c531841c7fa53bfa2618c7d5592abddfda.zip
zsh-workers/8851
Diffstat (limited to 'Doc/Zsh/mod_complist.yo')
-rw-r--r--Doc/Zsh/mod_complist.yo18
1 files changed, 18 insertions, 0 deletions
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(*)',