Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
context.vim47 linesDownload Raw Back to compiler
1vim9script2 3# Language:           ConTeXt typesetting engine4# Maintainer:         Nicola Vitacolonna <nvitacolonna@gmail.com>5# Former Maintainers: Nikolai Weibull <now@bitwi.se>6# Contributors:       Enno Nagel7# Last Change:        2026 Jan 108 9if exists("g:current_compiler")10  finish11endif12 13import autoload '../autoload/context.vim'14 15g:current_compiler = 'context'16 17if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||18  (!filereadable('Makefile') && !filereadable('makefile'))19  var makeprg =  join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ')20  execute 'CompilerSet makeprg=' .. escape(makeprg, ' ')21else22  g:current_compiler = 'make'23endif24 25const context_errorformat = join([26  "%-Popen source%.%#> %f",27  "%-Qclose source%.%#> %f",28  "%-Popen source%.%#name '%f'",29  "%-Qclose source%.%#name '%f'",30  "%E! %m",31  "%Ztex %trror%.%#error on line %l in file %f",32  "%Elua %trror%.%#error on line %l in file %f:",33  "%+Emetapost %#> error: %#",34  "%Emetafun%.%#error: %m",35  "%-C %#",36  "%C! %m",37  "%Z%.%#[ctxlua]:%l:%m",38  "%+C<*> %.%#",39  "%-C%.%#",40  "%Z...%m",41  "%-Zno-error",42  "%-G%.%#"], ",")43 44execute 'CompilerSet errorformat=' .. escape(context_errorformat, ' ')45 46# vim: sw=2 fdm=marker47 
codekingpro/portable-devtools · Team Ai