]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1678: blade files are not recognized 12740/head
authorObserverOfTime <chronobserver@disroot.org>
Sun, 6 Aug 2023 18:21:48 +0000 (03:21 +0900)
committerK.Takata <kentkt@csc.jp>
Sun, 6 Aug 2023 18:24:20 +0000 (03:24 +0900)
Problem:    Blade files are not recognized.
Solution:   Add a pattern for Blade files. (closes #12650)

Co-authored-by: Bram Moolenaar <Bram@vim.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index cdeb556410dbf6fb931ca341d98f82292dca1fde..d0ee535f587d2534451ba6c273c90111bfdf28f9 100644 (file)
@@ -254,6 +254,9 @@ au BufNewFile,BufRead named*.conf,rndc*.conf,rndc*.key      setf named
 au BufNewFile,BufRead named.root               setf bindzone
 au BufNewFile,BufRead *.db                     call dist#ft#BindzoneCheck('')
 
+" Blade
+au BufNewFile,BufRead *.blade.php              setf blade
+
 " Blank
 au BufNewFile,BufRead *.bl                     setf blank
 
index e2f2f045bbf5d266de6700ae77a9c71676b1627b..778e840d0e3ae46a6d10759f1f307a0cde59a5e1 100644 (file)
@@ -122,6 +122,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     bicep: ['file.bicep'],
     bindzone: ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
     bitbake: ['file.bb', 'file.bbappend', 'file.bbclass', 'build/conf/local.conf', 'meta/conf/layer.conf', 'build/conf/bbappend.conf', 'meta-layer/conf/distro/foo.conf'],
+    blade: ['file.blade.php'],
     blank: ['file.bl'],
     blueprint: ['file.blp'],
     bsdl: ['file.bsd', 'file.bsdl'],
index 8e470ef7a8a2297425e827ba118d156aeee64abb..e5b48448558518e385192e0558ded9d012b3755e 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1678,
 /**/
     1677,
 /**/