From: tris203 Date: Thu, 2 May 2024 11:08:25 +0000 (+0200) Subject: patch 9.1.0389: filetype: templ files are not recognized X-Git-Tag: v9.1.0389^0 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=54e79157c536c631b2f9b3dfefec30b9b966ed97;p=thirdparty%2Fvim.git patch 9.1.0389: filetype: templ files are not recognized Problem: filetype: templ files are not recognized Solution: Detect '*.templ' files as filetype templ (Tristan Knight) See: - https://github.com/a-h/templ - https://templ.guide/ closes: #14697 Signed-off-by: tris203 Signed-off-by: Christian Brabandt --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 0532c5f514..de432869ba 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2383,6 +2383,9 @@ au BufNewFile,BufRead *.tcl,*.tm,*.tk,*.itcl,*.itk,*.jacl,.tclshrc,.wishrc,.tcls " Xilinx's xsct and xsdb use tcl au BufNewFile,BufRead .xsctcmdhistory,.xsdbcmdhistory setf tcl +" templ +au BufNewFile,BufRead *.templ setf templ + " Teal au BufRead,BufNewFile *.tl setf teal diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index d96cce7926..1dc79fd52a 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -747,6 +747,7 @@ def s:GetFilenameChecks(): dict> tcl: ['file.tcl', 'file.tm', 'file.tk', 'file.itcl', 'file.itk', 'file.jacl', '.tclshrc', 'tclsh.rc', '.wishrc', '.tclsh-history', '.xsctcmdhistory', '.xsdbcmdhistory'], tablegen: ['file.td'], teal: ['file.tl'], + templ: ['file.templ'], template: ['file.tmpl'], teraterm: ['file.ttl'], terminfo: ['file.ti'], diff --git a/src/version.c b/src/version.c index 9934643058..da56ffc1ca 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 389, /**/ 388, /**/