Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: playing with backreferences in list-colors



Peter Stephenson wrote:

> By the way:
> 
>        All three forms of name may be preceded by  a  pattern  in
>        parentheses. If such a pattern is given, the value will be
>        used only for matches in groups whose names are matched by
>        the  pattern  given  in the parentheses. E.g. `(g*)~m*=43'
>        says to highlight all matches beginning with `m' in groups
>        whose  names  begin with `g' using the color code `43'. In
>        case of the `lc', `rc', and `ec' codes, the group  pattern
>        is ignored.
> 
> What does the `~' in the example mean here?   Is that a misprint?

Yes.

Bye
 Sven

diff -ru ../z.old/Doc/Zsh/mod_complist.yo Doc/Zsh/mod_complist.yo
--- ../z.old/Doc/Zsh/mod_complist.yo	Mon Jan 24 09:57:40 2000
+++ Doc/Zsh/mod_complist.yo	Mon Jan 24 10:12:00 2000
@@ -100,7 +100,7 @@
 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
+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.

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author