Minor fix to parser code

This commit is contained in:
Karl Yngve Lervåg 2016-07-23 23:41:48 +02:00
parent b83eb80a64
commit 136bb86896

View File

@ -81,8 +81,12 @@ function! s:parser(file, opts) " {{{1
for l:line in readfile(a:file)
let l:lnum += 1
if has_key(a:opts, 're_stop')
\ && l:line =~# a:opts.re_stop
if get(a:opts, 'finished', 0)
break
endif
if has_key(a:opts, 're_stop') && l:line =~# a:opts.re_stop
let a:opts.finished = 1
break
endif