about summary refs log tree commit diff
path: root/Doc/Zsh/contrib.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-06-24 16:09:28 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-06-24 16:09:28 +0000
commit46c8127e939e9102f27c5a10733cb444bf898a30 (patch)
tree0feedbf4a1f20c2e54209f3010ae11b820542f21 /Doc/Zsh/contrib.yo
parentc52864df2fd9fbf786ecd176a21eb34763993e05 (diff)
downloadzsh-46c8127e939e9102f27c5a10733cb444bf898a30.tar.gz
zsh-46c8127e939e9102f27c5a10733cb444bf898a30.tar.xz
zsh-46c8127e939e9102f27c5a10733cb444bf898a30.zip
25244: add subword-range style
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-rw-r--r--Doc/Zsh/contrib.yo9
1 files changed, 7 insertions, 2 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index e1640116a..0d3b16aa9 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -459,11 +459,15 @@ Restore the default settings; this is usually the same as `tt(normal)'.
 )
 enditem()
 
-All but `tt(default)' can be input as an upper case character, which was
+All but `tt(default)' can be input as an upper case character, which has
 the same effect but with subword matching turned on.  In this case, words
 with upper case characters are treated specially: each separate run of
 upper case characters, or an upper case character followed by any number of
-other characters, is considered a word.
+other characters, is considered a word.  The style tt(subword-range)
+can supply an alternative character range to the default `tt([:upper:])';
+the value of the style is treated as the contents of a `tt([)var(...)tt(])'
+pattern (note that the outer brackets should not be supplied, only
+those surrounding named ranges).
 
 More control can be obtained using the tt(zstyle) command, as described in
 ifzman(zmanref(zshmodules))\
@@ -591,6 +595,7 @@ sitem(tt(-w))(var(word-style))
 sitem(tt(-s))(var(skip-chars))
 sitem(tt(-c))(var(word-class))
 sitem(tt(-C))(var(word-chars))
+sitem(tt(-r))(var(subword-range))
 endsitem()
 
 For example, tt(match-words-by-style -w shell -c 0) may be used to