Allow matching preceding atom with zero-width (\@=)

This commit is contained in:
Junegunn Choi
2013-08-11 02:33:22 +09:00
parent 10a4176159
commit b3281fb19a
6 changed files with 128 additions and 5 deletions

View File

@@ -218,7 +218,7 @@ function! s:do_align(just, all_tokens, fl, ll, fc, lc, pattern, nth, ml, mr, sti
let token = substitute(last, pattern.'$', '', '')
let delim = get(matchlist(last, pattern.'$'), 1, '')
if empty(delim) && a:just == 0 && a:ignore_unmatched
if empty(delim) && !exists('tokens[nth + 1]') && a:just == 0 && a:ignore_unmatched
continue
endif