Merge Pull Request #674

This commit is contained in:
Karl Yngve Lervåg 2017-01-28 23:33:56 +01:00
commit 9d614b6a1b

View File

@ -366,7 +366,8 @@ function! s:ref.parse_number(num_tree) dict " {{{2
return self.parse_number(a:num_tree[l:index]) return self.parse_number(a:num_tree[l:index])
endif endif
else else
return str2nr(a:num_tree) > 0 ? a:num_tree : '-' let l:matches = matchlist(a:num_tree, '\v(^|.*\s)((\u|\d+)(\.\d+)*)($|\s.*)')
return len(l:matches) > 3 ? l:matches[2] : '-'
endif endif
endfunction endfunction
@ -438,7 +439,7 @@ endfunction
" {{{1 Filenames (\input and \include) " {{{1 Filenames (\input and \include)
let s:inc = { let s:inc = {
\ 'patterns' : ['\v\\%(include%(only)?|input)\s*\{[^}]*$'], \ 'patterns' : ['\v\\%(include%(only)?|input|subfile)\s*\{[^}]*$'],
\} \}
function! s:inc.complete(regex) dict " {{{2 function! s:inc.complete(regex) dict " {{{2