about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-08-14 16:58:47 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-08-14 16:58:47 +0000
commit6a77c04ce0fd8079ac93aa6f1657b3cc130987bc (patch)
tree970e00d1667406c0d4428ee7e4e2641af57cd270 /Doc
parent3a97920199accf4f63b622645ea208ccad42d07b (diff)
downloadzsh-6a77c04ce0fd8079ac93aa6f1657b3cc130987bc.tar.gz
zsh-6a77c04ce0fd8079ac93aa6f1657b3cc130987bc.tar.xz
zsh-6a77c04ce0fd8079ac93aa6f1657b3cc130987bc.zip
22608: improve doc for match-word-context
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo17
1 files changed, 8 insertions, 9 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index d6b4a9ef6..32fb283dc 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -487,16 +487,15 @@ has been set, and tt(transpose-words-match) is called with the cursor on
 the var(X) of tt(foo)var(X)tt(bar), where var(X) can be any character, then
 the resulting expression is tt(bar)var(X)tt(foo).
 
-Finer grained control can be obtained by setting the style
-tt(word-context) to an array of pairs of entries.  Each pair of entries
-consists of a var(pattern) and a var(subcontext).  The word the cursor is on is
+Finer grained control can be obtained by setting the style tt(word-context)
+to an array of pairs of entries.  Each pair of entries consists of a
+var(pattern) and a var(subcontext).  The shell argument the cursor is on is
 matched against each var(pattern) in turn until one matches; if it does,
 the context is extended by a colon and the corresponding var(subcontext).
-Note that the test is made against the original word on the line, with
-no stripping of quotes.  If the cursor is at the end of the line
-the test is maded against an empty string; if it is on whitespace
-between words the test is made against a single space.  Some examples
-are given below.
+Note that the test is made against the original word on the line, with no
+stripping of quotes.  If the cursor is at the end of the line the test is
+performed against an empty string; if it is on whitespace between words the
+test is made against a single space.  Some examples are given below.
 
 Here are some examples of use of the styles, actually taken from the
 simplified interface in tt(select-word-style):
@@ -516,7 +515,7 @@ Neither of the styles tt(word-chars) nor tt(word-class) is used in this case.
 Here are some examples of use of the tt(word-context) style to extend
 the context.
 
-example(zstyle ':zle:*' word-context "[[:space:]]" whitespace "*/*" file
+example(zstyle ':zle:*' word-context "*/*" file "[[:space:]]" whitespace
 zstyle ':zle:transpose-words:whitespace' word-style shell
 zstyle ':zle:transpose-words:filename' word-style normal
 zstyle ':zle:transpose-words:filename' word-chars '')