vim-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: vim/vim#14697

54e79157c5

Co-authored-by: tris203 <admin@snappeh.com>
This commit is contained in:
Christian Clason 2024-05-02 13:54:14 +02:00
parent cb2a36bb5f
commit ebf8237af8
2 changed files with 2 additions and 0 deletions

View File

@ -1039,6 +1039,7 @@ local extension = {
tk = 'tcl',
jacl = 'tcl',
tl = 'teal',
templ = 'templ',
tmpl = 'template',
ti = 'terminfo',
dtx = 'tex',

View File

@ -748,6 +748,7 @@ func s:GetFilenameChecks() abort
\ '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'],