We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70afdfc commit e551e71Copy full SHA for e551e71
1 file changed
runtime/syntax/tera.vim
@@ -2,6 +2,7 @@
2
" Language: Tera
3
" Maintainer: Muntasir Mahmud <muntasir.joypurhat@gmail.com>
4
" Last Change: 2026 Jan 29
5
+" 2026 Mar 31 by Vim project: prevent code execution in filename
6
7
if exists("b:current_syntax")
8
finish
@@ -22,7 +23,7 @@ endif
22
23
24
" Load the underlying language syntax if detected
25
if s:underlying_filetype != ""
- execute "runtime! syntax/" . s:underlying_filetype . ".vim"
26
+ execute "runtime! syntax/" . fnameescape(s:underlying_filetype) . ".vim"
27
unlet! b:current_syntax
28
else
29
" Default to HTML if no specific language detected
0 commit comments