Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix detection of latex warnings and filenames therein #268

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions ftplugin/latex-box/common.vim
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@ if g:LatexBox_show_warnings
endfor
setlocal efm+=%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#
setlocal efm+=%+W%.%#\ at\ lines\ %l--%*\\d
setlocal efm+=%+W%.%#\ at\ line\ %l
setlocal efm+=%+WLaTeX\ %.%#Warning:\ %m
setlocal efm+=%+W%.%#Warning:\ %m
setlocal efm+=%+W%moutput\ is\ active\ %.%#
else
setlocal efm+=%-WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#
setlocal efm+=%-W%.%#\ at\ lines\ %l--%*\\d
setlocal efm+=%-W%.%#\ at\ line\ %l
setlocal efm+=%-WLaTeX\ %.%#Warning:\ %m
setlocal efm+=%-W%.%#Warning:\ %m
endif
Expand All @@ -58,6 +61,22 @@ endif
setlocal efm+=%+P**%f
setlocal efm+=%+P**\"%f\"

" Ignore package info messages
" Also prevent parenthesized package names in those messages to be parsed as
" path.
setlocal efm+=%-IPackage\ %m\ on\ input\ line\ %l.%\\=
setlocal efm+=%-IPackage\ %m
setlocal efm+=%C(%.%#)\ \ \ \ \ \ \ \ %.%#

" Further file stack parsing
" ( opens a file, ) closes a file, page number are given in brackets and are
" omitted.
setlocal efm+=%-P\ %\\=(%f%r
setlocal efm+=%-Q)%r
setlocal efm+=%-O[%*\\d]%r
setlocal efm+=%-O[%.%#
setlocal efm+=%-O]%r

" Ignore unmatched lines
setlocal efm+=%-G%.%#
" }}}
Expand Down