Fix label completion for amsart (#193)

This commit is contained in:
Karl Yngve Lervåg 2015-07-05 22:00:27 +02:00
parent 2e3b737646
commit 66c0b273e2

View File

@ -433,6 +433,7 @@ function! s:labels_extract(file) " {{{1
let lines = filter(lines, 'v:val =~# ''\\newlabel{''')
let lines = filter(lines, 'v:val !~# ''@cref''')
let lines = filter(lines, 'v:val !~# ''sub@''')
let lines = filter(lines, 'v:val !~# ''tocindent-\?[0-9]''')
let lines = map(lines, 's:tex2unicode(v:val)')
for line in lines
let tree = s:tex2tree(line)[1:]