From dd85c1338238d19bce5e31783e85de35f73b21e7 Mon Sep 17 00:00:00 2001 From: "neovim-backports[bot]" <175700243+neovim-backports[bot]@users.noreply.github.com> Date: Tue, 31 Mar 2026 20:41:46 -0400 Subject: [PATCH] vim-patch: runtime file updates (#38659) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * vim-patch:e551e71: runtime(tera): use fnameescape() when loading separate syntax files https://github.com/vim/vim/commit/e551e71d7e47c233d55272162bc3e9160bc9d102 Co-authored-by: Christian Brabandt (cherry picked from commit ec1bea9c0518a1ef6b3945876cd3b3887bcd5fbc) * vim-patch:374f06f: runtime(racket): Use shellescape() to harden the K mapping fyi: @benknoble https://github.com/vim/vim/commit/374f06ffd8b890809289911334d8f0b0b15603bc Co-authored-by: Christian Brabandt Co-authored-by: Michał Majchrowicz (cherry picked from commit d29db48e0a4df9ce15234c941784f16d9a4abb13) --------- Co-authored-by: zeertzjq Co-authored-by: Christian Brabandt Co-authored-by: Michał Majchrowicz --- runtime/ftplugin/racket.vim | 3 ++- runtime/syntax/tera.vim | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/runtime/ftplugin/racket.vim b/runtime/ftplugin/racket.vim index b8004a93af..14a98ab790 100644 --- a/runtime/ftplugin/racket.vim +++ b/runtime/ftplugin/racket.vim @@ -4,6 +4,7 @@ " Previous Maintainer: Will Langstroth " URL: https://github.com/benknoble/vim-racket " Last Change: 2025 Aug 09 +" 2026 Mar 31 by Vim project: use shellescape for the K mapping if exists("b:did_ftplugin") finish @@ -51,7 +52,7 @@ if !exists("no_plugin_maps") && !exists("no_racket_maps") try let l:old_a = @a normal! gv"ay - call system("raco docs '". @a . "'") + call system("raco docs '". shellescape(@a) . "'") redraw! return @a finally diff --git a/runtime/syntax/tera.vim b/runtime/syntax/tera.vim index 90cf5171eb..e151e8674b 100644 --- a/runtime/syntax/tera.vim +++ b/runtime/syntax/tera.vim @@ -2,6 +2,7 @@ " Language: Tera " Maintainer: Muntasir Mahmud " Last Change: 2026 Jan 29 +" 2026 Mar 31 by Vim project: prevent code execution in filename if exists("b:current_syntax") finish @@ -22,7 +23,7 @@ endif " Load the underlying language syntax if detected if s:underlying_filetype != "" - execute "runtime! syntax/" . s:underlying_filetype . ".vim" + execute "runtime! syntax/" . fnameescape(s:underlying_filetype) . ".vim" unlet! b:current_syntax else " Default to HTML if no specific language detected