Skip to content

Commit

Permalink
fix: less strict label complete menu parser
Browse files Browse the repository at this point in the history
refer: #3036
  • Loading branch information
lervag committed Oct 26, 2024
1 parent f59b278 commit 0785fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/vimtex/parser/auxiliary.vim
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function! s:parse_number(num_tree) abort " {{{1
return s:parse_number(a:num_tree[l:index])
endif
else
let l:matches = matchlist(a:num_tree, '\v(^|.*\s)((\u|\d+)(\.\d+)*\l?)($|\s.*)')
let l:matches = matchlist(a:num_tree, '\v(^|.*\s)((\u|\d+)(\.\d+)*\S?)($|\s.*)')
return len(l:matches) > 3 ? l:matches[2] : '-'
endif
endfunction
Expand Down

0 comments on commit 0785fd9

Please sign in to comment.