<commit_before>" vim: ts=4 sw=4 et

function! neomake#makers#ft#tex#EnabledMakers() abort
    return ['chktex', 'lacheck', 'rubberinfo', 'proselint']
endfunction

function! neomake#makers#ft#tex#chktex() abort
    let maker = {
                \ 'args': [],
                \ 'errorformat':
                \ '%EError %n in %f line %l: %m,' .
                \ '%WWarning %n in %f line %l: %m,' .
                \ '%WMessage %n in %f line %l: %m,' .
                \ '%Z%p^,' .
                \ '%-G%.%#'
                \ }
    let rcfile = neomake#utils#FindGlobFile('.chktexrc')
    if !empty(rcfile)
        let maker.args += ['-l', fnamemodify(rcfile, ':h')]
    endif
    return maker
endfunction

function! neomake#makers#ft#tex#lacheck() abort
    return {
                \ 'errorformat':
                \ '%-G** %f:,' .
                \ '%E"%f"\, line %l: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#rubber() abort
    return {
                \ 'args': ['--pdf', '-f', '--warn=all'],
                \ 'errorformat':
                \ '%f:%l: %m,' .
                \ '%f: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#rubberinfo() abort
    return {
                \ 'exe': 'rubber-info',
                \ 'errorformat':
                \ '%f:%l: %m,' .
                \ '%f:%l-%\d%\+: %m,' .
                \ '%f: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#latexrun() abort
    return {
                \ 'args': ['--color', 'never'],
                \ 'errorformat':
                \ '%f:%l: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#pdflatex() abort
    return {
                \ 'exe': 'pdflatex',
                \ 'args': ['-file-line-error', '-interaction', 'nonstopmode'],
                \ 'errorformat': '%E%f:%l: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#proselint() abort
    return neomake#makers#ft#text#proselint()
endfunction
<commit_msg>Add '-shell-escape' argument to pdflatex maker. (#1661)<commit_after>" vim: ts=4 sw=4 et

function! neomake#makers#ft#tex#EnabledMakers() abort
    return ['chktex', 'lacheck', 'rubberinfo', 'proselint']
endfunction

function! neomake#makers#ft#tex#chktex() abort
    let maker = {
                \ 'args': [],
                \ 'errorformat':
                \ '%EError %n in %f line %l: %m,' .
                \ '%WWarning %n in %f line %l: %m,' .
                \ '%WMessage %n in %f line %l: %m,' .
                \ '%Z%p^,' .
                \ '%-G%.%#'
                \ }
    let rcfile = neomake#utils#FindGlobFile('.chktexrc')
    if !empty(rcfile)
        let maker.args += ['-l', fnamemodify(rcfile, ':h')]
    endif
    return maker
endfunction

function! neomake#makers#ft#tex#lacheck() abort
    return {
                \ 'errorformat':
                \ '%-G** %f:,' .
                \ '%E"%f"\, line %l: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#rubber() abort
    return {
                \ 'args': ['--pdf', '-f', '--warn=all'],
                \ 'errorformat':
                \ '%f:%l: %m,' .
                \ '%f: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#rubberinfo() abort
    return {
                \ 'exe': 'rubber-info',
                \ 'errorformat':
                \ '%f:%l: %m,' .
                \ '%f:%l-%\d%\+: %m,' .
                \ '%f: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#latexrun() abort
    return {
                \ 'args': ['--color', 'never'],
                \ 'errorformat':
                \ '%f:%l: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#pdflatex() abort
    return {
                \ 'exe': 'pdflatex',
                \ 'args': ['-shell-escape', '-file-line-error', '-interaction', 'nonstopmode'],
                \ 'errorformat': '%E%f:%l: %m'
                \ }
endfunction

function! neomake#makers#ft#tex#proselint() abort
    return neomake#makers#ft#text#proselint()
endfunction

{'fraction_non_alphanumeric': 0.18210862619808307, 'fraction_numerical': 0.001966085033177685, 'mean_word_length': 1.507701786814541, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4719400', 'n_tokens_mistral': 1410, 'n_tokens_neox': 1341, 'n_words': 265}