From ec1bea9c0518a1ef6b3945876cd3b3887bcd5fbc Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 1 Apr 2026 06:35:42 +0800 Subject: [PATCH] vim-patch:e551e71: runtime(tera): use fnameescape() when loading separate syntax files https://github.com/vim/vim/commit/e551e71d7e47c233d55272162bc3e9160bc9d102 Co-authored-by: Christian Brabandt --- runtime/syntax/tera.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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