annotate runtime/compiler/tex.vim @ 16109:82cbb08ae0f9 v8.1.1059

patch 8.1.1059: MS-Windows: PlatformId() is called unnecessarily commit https://github.com/vim/vim/commit/90d0cf69aab7c1d6f5212d47ca1a5fe1a213bbc8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Mar 27 21:49:14 2019 +0100 patch 8.1.1059: MS-Windows: PlatformId() is called unnecessarily Problem: MS-Windows: PlatformId() is called unnecessarily. Solution: Remove calls to PlatformId(). (Ken Takata, closes https://github.com/vim/vim/issues/4170)
author Bram Moolenaar <Bram@vim.org>
date Wed, 27 Mar 2019 22:00:07 +0100
parents d1e4abe8342c
children 11b656e74444
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim compiler file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Compiler: TeX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Artem Chuprina <ran@ran.pp.ru>
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
4 " Last Change: 2012 Apr 30
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 if exists("current_compiler")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 endif
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
9 let s:keepcpo= &cpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
10 set cpo&vim
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 command -nargs=* CompilerSet setlocal <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " If makefile exists and we are not asked to ignore it, we use standard make
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " (do not redefine makeprg)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 \(!filereadable('Makefile') && !filereadable('makefile'))
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " If buffer-local variable 'tex_flavor' exists, it defines TeX flavor,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " otherwize the same for global variable with same name, else it will be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " LaTeX
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 if exists("b:tex_flavor")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 let current_compiler = b:tex_flavor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 elseif exists("g:tex_flavor")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 let current_compiler = g:tex_flavor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 let current_compiler = "latex"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 let &l:makeprg=current_compiler.' -interaction=nonstopmode'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 let current_compiler = 'make'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Value errorformat are taken from vim help, see :help errorformat-LaTeX, with
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " addition from Srinath Avadhanula <srinath@fastmail.fm>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 \%E!\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 \%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 \%+W%.%#\ at\ lines\ %l--%*\\d,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 \%WLaTeX\ %.%#Warning:\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 \%Cl.%l\ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 \%+C\ \ %m.,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 \%+C%.%#-%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 \%+C%.%#[]%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 \%+C[]%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 \%+C%.%#%[{}\\]%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 \%+C<%.%#>%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 \%C\ \ %m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 \%-GSee\ the\ LaTeX%m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 \%-GType\ \ H\ <return>%m,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 \%-G\ ...%.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 \%-G%.%#\ (C)\ %.%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 \%-G(see\ the\ transcript%.%#),
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 \%-G\\s%#,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 \%+O(%*[^()])%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 \%+O%*[^()](%*[^()])%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 \%+P(%f%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 \%+P\ %\\=(%f%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 \%+P%*[^()](%f%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 \%+P[%\\d%[^()]%#(%f%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 \%+Q)%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 \%+Q%*[^()])%r,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 \%+Q[%\\d%*[^()])%r
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65
3496
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
66 let &cpo = s:keepcpo
d1e4abe8342c Fixed compatible mode in most runtime files.
Bram Moolenaar <bram@vim.org>
parents: 7
diff changeset
67 unlet s:keepcpo