Skip to content

Commit

Permalink
feat: match overfull vbox without line indicator
Browse files Browse the repository at this point in the history
ref: #2924
  • Loading branch information
lervag committed Aug 11, 2024
1 parent 9b3e5c8 commit 93448dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions autoload/vimtex/qf/latexlog.vim
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ function! s:qf.set_errorformat() abort dict "{{{1
setlocal errorformat+=%+WOverfull\ %\\%\\hbox%.%#\ at\ lines\ %l--%*\\d
setlocal errorformat+=%+WOverfull\ %\\%\\hbox%.%#\ at\ line\ %l
setlocal errorformat+=%+WOverfull\ %\\%\\vbox%.%#\ at\ line\ %l
setlocal errorformat+=%+WOverfull\ %\\%\\vbox%.%#\ %m

setlocal errorformat+=%+WUnderfull\ %\\%\\hbox%.%#\ at\ lines\ %l--%*\\d
setlocal errorformat+=%+WUnderfull\ %\\%\\vbox%.%#\ at\ line\ %l
Expand Down
2 changes: 2 additions & 0 deletions test/example-quickfix/main.log
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Package typearea Warning: \typearea used at group level 2.
Package caption Warning: Unsupported document class (or package) detected,
(caption) usage of the caption package is not recommended.

Overfull \vbox (303.66812pt too high) has occurred while \output is active []

Runaway argument?
{\sqrt {{1}} \end {equation} \par \end {document}
! File ended while scanning use of \frac .
Expand Down
1 change: 1 addition & 0 deletions test/test-quickfix/test-latexlog.vim
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ for s:expect in [
\ {'lnum': 18, 'type': 'W', 'text': "Package onlyamsmath Warning: Environment eqnarray or eqnarray* used, please use\nonly the environments provided by the amsmath\npackage"},
\ {'lnum': 21, 'type': 'W', 'text': "Package typearea Warning: \\typearea used at group level 2.\n Using \\typearea inside any group, e.g.\n environments, math mode, boxes, etc. may result in\n many type setting problems.\n You should move the command \\typearea\n outside all groups"},
\ {'lnum': 0, 'type': 'W', 'text': "Package caption Warning: Unsupported document class (or package) detected,\nusage of the caption package is not recommended."},
\ {'lnum': 0, 'type': 'W', 'text': "Overfull \\vbox (303.66812pt too high) has occurred while \\output is active []"},
\ {'lnum': 0, 'type': 'E', 'text': "Runaway argument?\n{\\sqrt {{1}} \\end {equation} \\par \\end {document} \nFile ended while scanning use of \\frac ."},
\ {'lnum': 0, 'type': 'E', 'text': 'Runaway argument?'},
\ {'lnum': 16, 'type': 'E', 'text': 'Paragraph ended before \date was complete.'},
Expand Down

0 comments on commit 93448dd

Please sign in to comment.