]> git.madduck.net Git - etc/vim.git/blobdiff - doc/explainpat.txt

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

v0.9
[etc/vim.git] / doc / explainpat.txt
index afe0fc9883a9b6cc246a8decb7e34632a167a277..0268c699a1794ee83fb7df322cbfdd95dd1f7a2e 100644 (file)
@@ -1,6 +1,6 @@
 *explainpat.txt*    Give detailed help on a regexp pattern.
 
-                   For Vim version 7.0.  Last change: 2017 Oct 20
+                   For Vim version 7.0.  Last change: 2017 Dec 15
                    By Andy Wokula <anwoku@yahoo.de>
 
                                                *explainpat* *explainpat.vim*
@@ -25,6 +25,9 @@ URL http://vim.sourceforge.net/scripts/script.php?script_id=4364
                                a       explain pattern from register a
                                etc.
 
+>
+       :ExplainPattern \C^\%(\\\%(@<\|%#=\|%[dxouU[(^$V#<>]\=\|z[1-9se(]\|@[>=!]\|_[[^$.]\=\|.\)\|.\)
+
 Notes:
 The pattern is first converted into a purely |magic| pattern using
 |nwo#magic#MakeMagic()|.  This means that embedded |/\V| |/\M| |/\m| |/\v|
@@ -37,6 +40,7 @@ specifiers are effectively removed from the explanation.
 
 ==============================================================================
 TODO:
+? `\%[...]` can be nested?  But documentation |/\%[]| says no.
 
 Ideas:
 - If the user already knows regular expressions but of a different kind,
@@ -53,6 +57,12 @@ Ideas:
 ==============================================================================
 History:
 
+v0.9
++ BF accept `\@123<=` and `\@123<!`
+
+v0.8
+* s:NewHelpPrinter() => explainpat#NewHelpPrinter()
+
 v0.7
 + BF `\{3,4\}` not accepted, only `\{3,4}`