<commit_before>" vimtex - LaTeX plugin for Vim
"
" Maintainer: <NAME>
" Email:      <EMAIL>
"

if exists('current_compiler') | finish | endif
let current_compiler = 'latexmk'

CompilerSet makeprg=""

"
" Note: The errorformat assumes we're using the -file-line-error with
"       [pdf]latex. For more info, see |errorformat-LaTeX|.
"

" Push file to file stack
CompilerSet errorformat=%-P**%f
CompilerSet errorformat+=%-P**\"%f\"

" Match errors
CompilerSet errorformat+=%E!\ LaTeX\ %trror:\ %m
CompilerSet errorformat+=%E%f:%l:\ %m
CompilerSet errorformat+=%E!\ %m

" More info for undefined control sequences
CompilerSet errorformat+=%Z<argument>\ %m

" More info for some errors
CompilerSet errorformat+=%Cl.%l\ %m

"
" Show warnings
"

let s:warnings = get(g:, 'vimtex_quickfix_warnings', {})
let s:packages = get(s:warnings, 'packages', {})
let s:wdefault = get(s:warnings, 'default', 1)
let s:pdefault = get(s:packages, 'default', 1)

if get(s:warnings, 'general', s:wdefault)
  CompilerSet errorformat+=%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#
  CompilerSet errorformat+=%+WLaTeX\ %.%#Warning:\ %m

  CompilerSet errorformat+=%-C(Font)%m
endif

if get(s:warnings, 'overfull', s:wdefault)
  CompilerSet errorformat+=%+WOverfull\ %\\%\\hbox%.%#\ at\ lines\ %l--%*\\d
endif

if get(s:warnings, 'underfull', s:wdefault)
  CompilerSet errorformat+=%+WUnderfull\ %\\%\\hbox%.%#\ at\ lines\ %l--%*\\d
endif

if get(s:packages, 'natbib', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ natbib\ Warning:\ %m\ on\ input\ line\ %l%.
endif

if get(s:packages, 'biblatex', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ biblatex\ Warning:\ %m
  CompilerSet errorformat+=%-C(biblatex)%.%#in\ t%.%#
  CompilerSet errorformat+=%-C(biblatex)%.%#Please\ v%.%#
  CompilerSet errorformat+=%-C(biblatex)%.%#LaTeX\ a%.%#
  CompilerSet errorformat+=%-Z(biblatex)%m
endif

if get(s:packages, 'babel', s:pdefault)
  CompilerSet errorformat+=%-Z(babel)%.%#input\ line\ %l.
  CompilerSet errorformat+=%-C(babel)%m
endif

if get(s:packages, 'hyperref', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ hyperref\ Warning:\ %m
  CompilerSet errorformat+=%-C(hyperref)%.%#on\ input\ line\ %l.
  CompilerSet errorformat+=%-C(hyperref)%m
endif

if get(s:packages, 'scrreprt', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ scrreprt\ Warning:\ %m
  CompilerSet errorformat+=%-C(scrreprt)%m
endif

if get(s:packages, 'fixltx2e', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ fixltx2e\ Warning:\ %m
  CompilerSet errorformat+=%-C(fixltx2e)%m
endif

if get(s:packages, 'titlesec', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ titlesec\ Warning:\ %m<commit_msg>Fixed #731: Better biblatex error parsing<commit_after>" vimtex - LaTeX plugin for Vim
"
" Maintainer: <NAME>
" Email:      <EMAIL>
"

if exists('current_compiler') | finish | endif
let current_compiler = 'latexmk'

CompilerSet makeprg=""

"
" Note: The errorformat assumes we're using the -file-line-error with
"       [pdf]latex. For more info, see |errorformat-LaTeX|.
"

" Push file to file stack
CompilerSet errorformat=%-P**%f
CompilerSet errorformat+=%-P**\"%f\"

" Match errors
CompilerSet errorformat+=%E!\ LaTeX\ %trror:\ %m
CompilerSet errorformat+=%E%f:%l:\ %m
CompilerSet errorformat+=%E!\ %m

" More info for undefined control sequences
CompilerSet errorformat+=%Z<argument>\ %m

" More info for some errors
CompilerSet errorformat+=%Cl.%l\ %m

"
" Show warnings
"

let s:warnings = get(g:, 'vimtex_quickfix_warnings', {})
let s:packages = get(s:warnings, 'packages', {})
let s:wdefault = get(s:warnings, 'default', 1)
let s:pdefault = get(s:packages, 'default', 1)

if get(s:warnings, 'general', s:wdefault)
  CompilerSet errorformat+=%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#
  CompilerSet errorformat+=%+WLaTeX\ %.%#Warning:\ %m

  CompilerSet errorformat+=%-C(Font)%m
endif

if get(s:warnings, 'overfull', s:wdefault)
  CompilerSet errorformat+=%+WOverfull\ %\\%\\hbox%.%#\ at\ lines\ %l--%*\\d
endif

if get(s:warnings, 'underfull', s:wdefault)
  CompilerSet errorformat+=%+WUnderfull\ %\\%\\hbox%.%#\ at\ lines\ %l--%*\\d
endif

if get(s:packages, 'natbib', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ natbib\ Warning:\ %m\ on\ input\ line\ %l%.
endif

if get(s:packages, 'biblatex', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ biblatex\ Warning:\ %m
  CompilerSet errorformat+=%-C(biblatex)%.%#in\ t%.%#
  CompilerSet errorformat+=%-C(biblatex)%.%#Please\ v%.%#
  CompilerSet errorformat+=%-C(biblatex)%.%#LaTeX\ a%.%#
  CompilerSet errorformat+=%-C(biblatex)%m
endif

if get(s:packages, 'babel', s:pdefault)
  CompilerSet errorformat+=%-Z(babel)%.%#input\ line\ %l.
  CompilerSet errorformat+=%-C(babel)%m
endif

if get(s:packages, 'hyperref', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ hyperref\ Warning:\ %m
  CompilerSet errorformat+=%-C(hyperref)%.%#on\ input\ line\ %l.
  CompilerSet errorformat+=%-C(hyperref)%m
endif

if get(s:packages, 'scrreprt', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ scrreprt\ Warning:\ %m
  CompilerSet errorformat+=%-C(scrreprt)%m
endif

if get(s:packages, 'fixltx2e', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ fixltx2e\ Warning:\ %m
  CompilerSet errorformat+=%-C(fixltx2e)%m
endif

if get(s:packages, 'titlesec', s:pdefault)
  CompilerSet errorformat+=%+WPackage\ titlesec\ Warning:\ %m
{'fraction_non_alphanumeric': 0.18290854572713644, 'fraction_numerical': 0.0024362818590704647, 'mean_word_length': 5.162817551963048, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6302754', 'n_tokens_mistral': 2122, 'n_tokens_neox': 2018, 'n_words': 458}