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.
@@ -187,17+187,21 @@ let s:doc['\@='] = "(assertion) require match for preceding atom"
let s:doc['\@!'] = "(assertion) forbid match for preceding atom"
func! s:DocBefore(bull, hulit, item) "{{{
let s:doc['\@!'] = "(assertion) forbid match for preceding atom"
func! s:DocBefore(bull, hulit, item) "{{{
- let rest = a:bull.Bite('^[=!]')
- if rest == "="
+ let rest = a:bull.Bite('^\d*\%[<[=!]]')
+ if rest == "<="
call a:hulit.Print(a:item.rest, "(assertion) require match for preceding atom to the left")
call a:hulit.Print(a:item.rest, "(assertion) require match for preceding atom to the left")
- elseif rest == "!"
+ elseif rest == "<!"
call a:hulit.Print(a:item.rest, "(assertion) forbid match for preceding atom to the left")
call a:hulit.Print(a:item.rest, "(assertion) forbid match for preceding atom to the left")
+ elseif rest =~ '^\d\+<='
+ call a:hulit.Print(a:item.rest, printf("(assertion) like `\\@<=', looking back at most %s bytes (since Vim 7.3.1037)", s:SillyCheck(matchstr(rest, '\d\+'))))
+ elseif rest =~ '^\d\+<!'
+ call a:hulit.Print(a:item.rest, printf("(assertion) like `\\@<!', looking back at most %s bytes (since Vim 7.3.1037)", s:SillyCheck(matchstr(rest, '\d\+'))))
else
else
- call a:hulit.Print(a:item.rest, "(invalid) `\\@<' must be followed by `=' or `!'")