about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2017-05-28 11:32:10 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2017-05-28 11:32:10 -0700
commit11304f731899275826b4efd52349cfe33684502a (patch)
treebb37d34bbee2a7d3ce2dae03d08064ca7131fae8
parent5ded0ad96740b62ea0214387ee260b515726a05e (diff)
downloadzsh-11304f731899275826b4efd52349cfe33684502a.tar.gz
zsh-11304f731899275826b4efd52349cfe33684502a.tar.xz
zsh-11304f731899275826b4efd52349cfe33684502a.zip
unposted: clarify ZLS_COLORS pattern matching contexts
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/mod_complist.yo5
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 68e36e718..15a02afa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-05-28  Barton E. Schaefer  <schaefer@zsh.org>
 
+	* unposted: Doc/Zsh/mod_complist.yo: clarify ZLS_COLORS pattern
+	matching contexts
+
 	* 41159 (tweaked): Completion/Unix/Command/_ssh: handle "Include"
 	and "HostName" lines in ~/.ssh/config
 
diff --git a/Doc/Zsh/mod_complist.yo b/Doc/Zsh/mod_complist.yo
index 31aa656f1..463486ff9 100644
--- a/Doc/Zsh/mod_complist.yo
+++ b/Doc/Zsh/mod_complist.yo
@@ -134,7 +134,10 @@ matches beginning with `tt(m)' in groups whose names  begin with
 
 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.
+then used.  Patterns may be matched against completions, descriptions
+(possibly with spaces appended for padding), or lines consisting of a
+completion followed by a description.  For consistent coloring it may be
+necessary to use more than one pattern or a pattern with backreferences.
 
 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(*)',