# HG changeset patch # User Bram Moolenaar # Date 1557172806 -7200 # Node ID a6c073fa99e15f5d95d3643e2272c6b2e22658e0 # Parent fc49759f759035f70bf8de229a933e5cee3f3d7d patch 8.1.1284: detecting *.tmpl as htmlcheetah is outdated commit https://github.com/vim/vim/commit/d1362211291c85d29609baab65abc764b1aec169 Author: Bram Moolenaar Date: Mon May 6 21:46:10 2019 +0200 patch 8.1.1284: detecting *.tmpl as htmlcheetah is outdated Problem: Detecting *.tmpl as htmlcheetah is outdated. Solution: Use the generic name "template". (closes https://github.com/vim/vim/issues/4348) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -713,8 +713,8 @@ au BufNewFile,BufRead *.erb,*.rhtml set " HTML with M4 au BufNewFile,BufRead *.html.m4 setf htmlm4 -" HTML Cheetah template -au BufNewFile,BufRead *.tmpl setf htmlcheetah +" Some template. Used to be HTML Cheetah. +au BufNewFile,BufRead *.tmpl setf template " Host config au BufNewFile,BufRead */etc/host.conf setf hostconf diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -200,7 +200,7 @@ let s:filename_checks = { \ 'hog': ['file.hog', 'snort.conf', 'vision.conf'], \ 'hostconf': ['/etc/host.conf'], \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny'], - \ 'htmlcheetah': ['file.tmpl'], + \ 'template': ['file.tmpl'], \ 'htmlm4': ['file.html.m4'], \ 'httest': ['file.htt', 'file.htb'], \ 'ibasic': ['file.iba', 'file.ibi'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -768,6 +768,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1284, +/**/ 1283, /**/ 1282,