1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-06 11:21:22 +02:00

45306: zstyle docs: Introduce the first synopsis in the same way as all others: with an item()().

This commit is contained in:
Daniel Shahaf 2020-01-15 19:50:54 +00:00
parent 490478378f
commit 6f263b5e89
2 changed files with 10 additions and 6 deletions

View file

@ -1,5 +1,8 @@
2020-01-16 Daniel Shahaf <danielsh@apache.org>
* 45306: Doc/Zsh/mod_zutil.yo: zstyle docs: Introduce the first
synopsis in the same way as all others: with an item()().
* unposted: Doc/Zsh/options.yo, Doc/Zsh/params.yo: docs: Fix
a cross-reference.

View file

@ -49,7 +49,11 @@ in order to retrieve your preference into the scalar variable tt($REPLY).
em(Usage)
The first form (without arguments) lists the definitions. Styles
The forms that operate on patterns are the following.
startitem()
item(tt(zstyle) [ tt(-L) [ var(pattern) [ var(style) ] ] ])(
Without arguments, lists style definitions. Styles
are shown in alphabetic order and patterns are shown in the order
tt(zstyle) will test them.
@ -61,10 +65,7 @@ match any supplied pattern beginning `tt(:completion:)', not
just tt(":completion:*"): use tt(':completion:\*') to match that.
The optional second argument limits the output to a specific var(style) (not a
pattern). tt(-L) is not compatible with any other options.
The other forms are the following:
startitem()
)
item(tt(zstyle) [ tt(-) | tt(-)tt(-) | tt(-e) ] var(pattern) var(style) var(string) ...)(
vindex(reply, use of)
Defines the given var(style) for the var(pattern) with the var(string)s as
@ -93,7 +94,7 @@ combination is returned.
)
enditem()
The other forms can be used to look up or test patterns.
The other forms can be used to look up or test styles for a given context.
startitem()
item(tt(zstyle -s) var(context) var(style) var(name) [ var(sep) ])(