summaryrefslogtreecommitdiffstats
path: root/runtime/compiler/context.vim
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/compiler/context.vim')
-rw-r--r--runtime/compiler/context.vim11
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/compiler/context.vim b/runtime/compiler/context.vim
index f600936..093943e 100644
--- a/runtime/compiler/context.vim
+++ b/runtime/compiler/context.vim
@@ -3,7 +3,9 @@ vim9script
# Language: ConTeXt typesetting engine
# Maintainer: Nicola Vitacolonna <nvitacolonna@gmail.com>
# Former Maintainers: Nikolai Weibull <now@bitwi.se>
-# Latest Revision: 2023 Dec 26
+# Contributors: Enno Nagel
+# Last Change: 2024 Mar 29
+# 2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
if exists("g:current_compiler")
finish
@@ -11,15 +13,12 @@ endif
import autoload '../autoload/context.vim'
-if exists(":CompilerSet") != 2 # Older Vim always used :setlocal
- command -nargs=* CompilerSet setlocal <args>
-endif
-
g:current_compiler = 'context'
if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||
(!filereadable('Makefile') && !filereadable('makefile'))
- &l:makeprg = join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ')
+ var makeprg = join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ')
+ execute 'CompilerSet makeprg=' .. escape(makeprg, ' ')
else
g:current_compiler = 'make'
endif