]> granicus.if.org Git - vim/commitdiff
patch 8.1.1284: detecting *.tmpl as htmlcheetah is outdated v8.1.1284
authorBram Moolenaar <Bram@vim.org>
Mon, 6 May 2019 19:46:10 +0000 (21:46 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 May 2019 19:46:10 +0000 (21:46 +0200)
Problem:    Detecting *.tmpl as htmlcheetah is outdated.
Solution:   Use the generic name "template". (closes #4348)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index d1f3884bdf5a2feaa0e64bfdfa38016c0ec2393d..9ac773a5c5534247c3786f21f15e62f31b599504 100644 (file)
@@ -713,8 +713,8 @@ au BufNewFile,BufRead *.erb,*.rhtml         setf eruby
 " 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
index 0783d3ef6689e194a58195df0de0d9b93ac82a2c..cb55e28b6399146b38b4f2919e700f038039972a 100644 (file)
@@ -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'],
index 892d1a50754313b607de05745594813a91ec05ba..bb310e2d066c712226ab5d1ad7fa2e3e3776a023 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1284,
 /**/
     1283,
 /**/