]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
runtime(compiler): add comment for Dispatch
authorKonfekt <Konfekt@users.noreply.github.com>
Tue, 11 Mar 2025 20:35:48 +0000 (21:35 +0100)
committerChristian Brabandt <cb@256bit.org>
Tue, 11 Mar 2025 20:35:48 +0000 (21:35 +0100)
closes: #16854

Signed-off-by: Konfekt <Konfekt@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/compiler/context.vim
runtime/compiler/javac.vim
runtime/compiler/powershell.vim
runtime/compiler/tex.vim
runtime/compiler/typst.vim

index 093943e22d0df9e75b93e2401712b1a4735b55ca..c3780d461b7a4822d18e938783b1a658f1be5870 100644 (file)
@@ -6,6 +6,7 @@ vim9script
 # Contributors:       Enno Nagel
 # Last Change:        2024 Mar 29
 #                     2024 Apr 03 by The Vim Project (removed :CompilerSet definition)
+#                     2025 Mar 11 by The Vim Project (add comment for Dispatch)
 
 if exists("g:current_compiler")
   finish
@@ -15,6 +16,7 @@ import autoload '../autoload/context.vim'
 
 g:current_compiler = 'context'
 
+# CompilerSet makeprg=context
 if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) ||
   (!filereadable('Makefile') && !filereadable('makefile'))
   var makeprg =  join(context.ConTeXtCmd(shellescape(expand('%:p:t'))), ' ')
index 53cd772ed8a02f8f78d864624b2acfb270af9082..d4f24cd2100af6c74c73b5d7bc87815502dcbc8e 100644 (file)
@@ -2,6 +2,7 @@
 " Compiler:    Java Development Kit Compiler
 " Maintainer:  Doug Kearns <dougkearns@gmail.com>
 " Last Change: 2024 Nov 19 (enable local javac_makeprg_params)
+"              2025 Mar 11 (add comment for Dispatch)
 
 if exists("current_compiler")
   finish
@@ -11,6 +12,7 @@ let current_compiler = "javac"
 let s:cpo_save = &cpo
 set cpo&vim
 
+" CompilerSet makeprg=javac
 execute $'CompilerSet makeprg=javac\ {escape(get(b:, 'javac_makeprg_params', get(g:, 'javac_makeprg_params', '')), ' \|"')}'
 
 CompilerSet errorformat=%E%f:%l:\ error:\ %m,
index 3d37d7c847775fab81813be7ce9eb855c3674f93..d5dd692096c38fca9f6970bbfde09919716e7a9f 100644 (file)
@@ -6,6 +6,7 @@
 "              2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
 "              2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
 "              2024 Nov 19 by the Vim Project (properly escape makeprg setting)
+"              2025 Mar 11 by the Vim Project (add comment for Dispatch)
 
 if exists("current_compiler")
   finish
@@ -50,6 +51,8 @@ let s:makeprg = g:ps1_makeprg_cmd .. ' %:p:S'
 "         + CategoryInfo          : ObjectNotFound: (Write-Ouput:String) [], CommandNotFoundException
 "         + FullyQualifiedErrorId : CommandNotFoundException
 
+" CompilerSet makeprg=pwsh
+" CompilerSet makeprg=powershell
 execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"')
 
 " Showing error in context with underlining.
index bc1623729ab1dbab400e5ed8e251244f71caf731..529f7f7710cfe11d001dcd666dbd8658decbf4fa 100644 (file)
@@ -6,6 +6,7 @@
 "              2024 Apr 03 by the Vim Project (removed :CompilerSet definition)
 "              2024 Apr 05 by the Vim Project (avoid leaving behind g:makeprg)
 "              2024 Nov 19 by the Vim Project (properly escape makeprg setting)
+"              2025 Mar 11 by the Vim Project (add comment for Dispatch)
 
 if exists("current_compiler")
        finish
@@ -28,6 +29,7 @@ if exists('b:tex_ignore_makefile') || exists('g:tex_ignore_makefile') ||
                let current_compiler = "latex"
        endif
        let s:makeprg=current_compiler .. ' -interaction=nonstopmode'
+       " CompilerSet makeprg=latex
        execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' \|"')
 else
        let current_compiler = 'make'
index 13699f46750f733e69c49a4e35769418f9114084..b7e5ff55075192883bbaf98a033ca5f08560c52e 100644 (file)
@@ -2,8 +2,9 @@
 " Language:    Typst
 " Previous Maintainer:  Gregory Anders
 " Maintainer:  Luca Saccarola <github.e41mv@aleeas.com>
+" Based On:    https://github.com/kaarmu/typst.vim
 " Last Change: 2024 Dec 09
-" Based on:    https://github.com/kaarmu/typst.vim
+" 2025 Mar 11 by the Vim Project (add comment for Dispatch)
 
 if exists('current_compiler')
     finish
@@ -13,4 +14,5 @@ let current_compiler = get(g:, 'typst_cmd', 'typst')
 " With `--diagnostic-format` we can use the default errorformat
 let s:makeprg = [current_compiler, 'compile', '--diagnostic-format', 'short', '%:S']
 
+" CompilerSet makeprg=typst
 execute 'CompilerSet makeprg=' . join(s:makeprg, '\ ')