Mercurial > vim
annotate runtime/compiler/context.vim @ 30339:b5f67135fcb6 v9.0.0505
patch 9.0.0505: various problems with 'nosplitscroll'
Commit: https://github.com/vim/vim/commit/faf1d412f5e3665021500b528c0e7301eb02bf0b
Author: Luuk van Baal <luukvbaal@gmail.com>
Date: Mon Sep 19 16:45:29 2022 +0100
patch 9.0.0505: various problems with 'nosplitscroll'
Problem: Various problems with 'nosplitscroll'.
Solution: Fix 'nosplitscroll' problems. (Luuk van Baal, closes https://github.com/vim/vim/issues/11166)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 19 Sep 2022 18:00:05 +0200 |
parents | 2acb87ee55fc |
children | d81556766132 |
rev | line source |
---|---|
29756 | 1 vim9script |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
2 |
29756 | 3 # Language: ConTeXt typesetting engine |
4 # Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com> | |
5 # Former Maintainers: Nikolai Weibull <now@bitwi.se> | |
6 # Latest Revision: 2022 Aug 12 | |
7 | |
8 if exists("g:current_compiler") | |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
9 finish |
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
10 endif |
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
11 |
29756 | 12 import autoload '../autoload/context.vim' |
13 | |
14 if exists(":CompilerSet") != 2 # Older Vim always used :setlocal | |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
15 command -nargs=* CompilerSet setlocal <args> |
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
16 endif |
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
17 |
29756 | 18 g:current_compiler = 'context' |
19 | |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
20 if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) || |
29756 | 21 (!filereadable('Makefile') && !filereadable('makefile')) |
22 &l:makeprg = join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ') | |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
23 else |
29756 | 24 g:current_compiler = 'make' |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
25 endif |
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
26 |
29756 | 27 const context_errorformat = join([ |
28 "%-Popen source%.%#> %f", | |
29 "%-Qclose source%.%#> %f", | |
30 "%-Popen source%.%#name '%f'", | |
31 "%-Qclose source%.%#name '%f'", | |
32 "tex %trror%.%#error on line %l in file %f: %m", | |
33 "%Elua %trror%.%#error on line %l in file %f:", | |
34 "%+Emetapost %#> error: %#", | |
35 "%Emetafun%.%#error: %m", | |
36 "! error: %#%m", | |
37 "%-C %#", | |
38 "%C! %m", | |
39 "%Z[ctxlua]%m", | |
40 "%+C<*> %.%#", | |
41 "%-C%.%#", | |
42 "%Z...%m", | |
43 "%-Zno-error", | |
44 "%-G%.%#"], ",") | |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
45 |
29756 | 46 execute 'CompilerSet errorformat=' .. escape(context_errorformat, ' ') |
10301
07d2b5a3b7cc
commit https://github.com/vim/vim/commit/46fceaaa8d1447a9588736d86eb4908214187b08
Christian Brabandt <cb@256bit.org>
parents:
diff
changeset
|
47 |
29756 | 48 # vim: sw=2 fdm=marker |