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 <admin@snappeh.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
2ffdae7948
commit
54e79157c5
@ -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
|
||||
|
||||
|
||||
@ -747,6 +747,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
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'],
|
||||
|
||||
@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
389,
|
||||
/**/
|
||||
388,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user