Mercurial > vim
annotate runtime/compiler/tex.vim @ 20917:5c6a6b5a3330 v8.2.1010
patch 8.2.1010: build failure in libvterm with debug enabled
Commit: https://github.com/vim/vim/commit/128d3079635ae62786a13adc435d0063a64a014a
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 19 17:20:41 2020 +0200
patch 8.2.1010: build failure in libvterm with debug enabled
Problem: Build failure in libvterm with debug enabled. (John Little)
Solution: Use "->" instead of ".".
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 19 Jun 2020 17:30:03 +0200 |
parents | d1e4abe8342c |
children | 11b656e74444 |
rev | line source |
---|---|
7 | 1 " Vim compiler file |
2 " Compiler: TeX | |
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 | 5 |
6 if exists("current_compiler") | |
7 finish | |
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 | 11 |
12 if exists(":CompilerSet") != 2 " older Vim always used :setlocal | |
13 command -nargs=* CompilerSet setlocal <args> | |
14 endif | |
15 | |
16 " If makefile exists and we are not asked to ignore it, we use standard make | |
17 " (do not redefine makeprg) | |
18 if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') || | |
19 \(!filereadable('Makefile') && !filereadable('makefile')) | |
20 " If buffer-local variable 'tex_flavor' exists, it defines TeX flavor, | |
21 " otherwize the same for global variable with same name, else it will be | |
22 " LaTeX | |
23 if exists("b:tex_flavor") | |
24 let current_compiler = b:tex_flavor | |
25 elseif exists("g:tex_flavor") | |
26 let current_compiler = g:tex_flavor | |
27 else | |
28 let current_compiler = "latex" | |
29 endif | |
30 let &l:makeprg=current_compiler.' -interaction=nonstopmode' | |
31 else | |
32 let current_compiler = 'make' | |
33 endif | |
34 | |
35 " Value errorformat are taken from vim help, see :help errorformat-LaTeX, with | |
36 " addition from Srinath Avadhanula <srinath@fastmail.fm> | |
37 CompilerSet errorformat=%E!\ LaTeX\ %trror:\ %m, | |
38 \%E!\ %m, | |
39 \%+WLaTeX\ %.%#Warning:\ %.%#line\ %l%.%#, | |
40 \%+W%.%#\ at\ lines\ %l--%*\\d, | |
41 \%WLaTeX\ %.%#Warning:\ %m, | |
42 \%Cl.%l\ %m, | |
43 \%+C\ \ %m., | |
44 \%+C%.%#-%.%#, | |
45 \%+C%.%#[]%.%#, | |
46 \%+C[]%.%#, | |
47 \%+C%.%#%[{}\\]%.%#, | |
48 \%+C<%.%#>%.%#, | |
49 \%C\ \ %m, | |
50 \%-GSee\ the\ LaTeX%m, | |
51 \%-GType\ \ H\ <return>%m, | |
52 \%-G\ ...%.%#, | |
53 \%-G%.%#\ (C)\ %.%#, | |
54 \%-G(see\ the\ transcript%.%#), | |
55 \%-G\\s%#, | |
56 \%+O(%*[^()])%r, | |
57 \%+O%*[^()](%*[^()])%r, | |
58 \%+P(%f%r, | |
59 \%+P\ %\\=(%f%r, | |
60 \%+P%*[^()](%f%r, | |
61 \%+P[%\\d%[^()]%#(%f%r, | |
62 \%+Q)%r, | |
63 \%+Q%*[^()])%r, | |
64 \%+Q[%\\d%*[^()])%r | |
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 |