]> git.madduck.net Git - etc/vim.git/commitdiff

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:

added \{...\}
authorAndy Wokula <anwoku@yahoo.de>
Sat, 21 Oct 2017 15:47:30 +0000 (17:47 +0200)
committerAndy Wokula <anwoku@yahoo.de>
Sat, 21 Oct 2017 15:50:12 +0000 (17:50 +0200)
autoload/explainpat.vim
doc/explainpat.txt
plugin/explainpat.vim

index 6c655671f80e2c3f4a73ddee98d75855c9f9263b..566273266fc981d00b81d37c22cb182946766377 100644 (file)
@@ -1,10 +1,9 @@
 " File:         explainpat.vim
 " Created:      2011 Nov 02
-" Last Change:  2013 Dec 30
-" Rev Days:     12
+" Last Change:  2017 Oct 20
+" Version:     0.7
 " Author:      Andy Wokula <anwoku@yahoo.de>
 " License:     Vim License, see :h license
-" Version:     0.7
 
 " Implements :ExplainPattern [pattern]
 
@@ -167,7 +166,7 @@ let s:doc['\?'] = "(multi) zero or one of the preceding atom"
 " let s:doc['\{-'] = "(multi) N to M, non-greedy"
 
 func! s:DocBraceMulti(bull, hulit, item) "{{{
-    let rest = a:bull.Bite('^-\=\d*\%(,\d*\)\=}')
+    let rest = a:bull.Bite('^-\=\d*\%(,\d*\)\=\\\=}')
     if rest != ""
        if rest == '-}'
            call a:hulit.Print(a:item. rest, "non-greedy version of `*'")
index 86cab165cb3b7c787b3f39b9d5a13af6ad2b266e..afe0fc9883a9b6cc246a8decb7e34632a167a277 100644 (file)
@@ -1,6 +1,6 @@
 *explainpat.txt*    Give detailed help on a regexp pattern.
 
-                   For Vim version 7.0.  Last change: 2013 Jun 29
+                   For Vim version 7.0.  Last change: 2017 Oct 20
                    By Andy Wokula <anwoku@yahoo.de>
 
                                                *explainpat* *explainpat.vim*
@@ -53,6 +53,9 @@ Ideas:
 ==============================================================================
 History:
 
+v0.7
++ BF `\{3,4\}` not accepted, only `\{3,4}`
+
 v0.6
 + BF `[]` is a literal string (not a collection)
 
index 18dd5740e983d6a02c2fae95a332bdf4dcbf3d09..731f9a430c23e2bb86ffcbe5720233f3b0775a3f 100644 (file)
@@ -28,7 +28,7 @@ if v:version < 700
     finish
 endif
 
-com! -nargs=*  ExplainPattern  call explainpat#ExplainPattern(<q-args>)
+com! -nargs=?  ExplainPattern  call explainpat#ExplainPattern(<q-args>)
 
 " Modeline: {{{1
 " vim:ts=8:fdm=marker: