diff options
author | zeertzjq <zeertzjq@outlook.com> | 2025-03-12 16:49:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-12 16:49:36 +0800 |
commit | c63e794b103ceaa0b9cf4cd6816422bb38abde7e (patch) | |
tree | ccd9fa62b1a00b32963c3c0893307e7098c5d58b | |
parent | 44ccd9ca24dd804afbc8a00eb1a4789975a51362 (diff) | |
download | rneovim-c63e794b103ceaa0b9cf4cd6816422bb38abde7e.tar.gz rneovim-c63e794b103ceaa0b9cf4cd6816422bb38abde7e.tar.bz2 rneovim-c63e794b103ceaa0b9cf4cd6816422bb38abde7e.zip |
vim-patch:4fa2dd2: runtime(compiler): add comment for Dispatch (#32856)
closes: vim/vim#16854
https://github.com/vim/vim/commit/4fa2dd2405a8d11bf1d1cb3553adb6fba53dc19f
Co-authored-by: Konfekt <Konfekt@users.noreply.github.com>
-rw-r--r-- | runtime/compiler/context.vim | 1 | ||||
-rw-r--r-- | runtime/compiler/javac.vim | 2 | ||||
-rw-r--r-- | runtime/compiler/powershell.vim | 3 | ||||
-rw-r--r-- | runtime/compiler/tex.vim | 2 | ||||
-rw-r--r-- | runtime/compiler/typst.vim | 4 |
5 files changed, 11 insertions, 1 deletions
diff --git a/runtime/compiler/context.vim b/runtime/compiler/context.vim index 3d626ffa60..77f0eef806 100644 --- a/runtime/compiler/context.vim +++ b/runtime/compiler/context.vim @@ -21,6 +21,7 @@ if get(b:, 'context_ignore_makefile', get(g:, 'context_ignore_makefile', 0)) || \ . (get(b:, 'context_synctex', get(g:, 'context_synctex', 0)) ? '1' : '0') \ . ' ' . get(b:, 'context_extra_options', get(g:, 'context_extra_options', '')) \ . ' ' . shellescape(expand('%:p:t')) + " CompilerSet makeprg=context execute 'CompilerSet makeprg=' .. escape(s:makeprg, ' ') else let current_compiler = 'make' diff --git a/runtime/compiler/javac.vim b/runtime/compiler/javac.vim index 53cd772ed8..d4f24cd210 100644 --- a/runtime/compiler/javac.vim +++ b/runtime/compiler/javac.vim @@ -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, diff --git a/runtime/compiler/powershell.vim b/runtime/compiler/powershell.vim index 3d37d7c847..d5dd692096 100644 --- a/runtime/compiler/powershell.vim +++ b/runtime/compiler/powershell.vim @@ -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. diff --git a/runtime/compiler/tex.vim b/runtime/compiler/tex.vim index bc1623729a..529f7f7710 100644 --- a/runtime/compiler/tex.vim +++ b/runtime/compiler/tex.vim @@ -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' diff --git a/runtime/compiler/typst.vim b/runtime/compiler/typst.vim index 13699f4675..b7e5ff5507 100644 --- a/runtime/compiler/typst.vim +++ b/runtime/compiler/typst.vim @@ -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, '\ ') |