To: vim_dev@googlegroups.com Subject: Patch 8.2.4708 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.4708 Problem: PHP test files are not recognized. Solution: Add the *.phpt pattern. (Julien Voisin, closes #10112) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.4707/runtime/filetype.vim 2022-04-06 18:57:34.119958768 +0100 --- runtime/filetype.vim 2022-04-07 15:57:46.810436147 +0100 *************** *** 1352,1360 **** au BufNewFile,BufRead *.pod setf pod " Php, php3, php4, etc. ! " Also Phtml (was used for PHP 2 in the past) ! " Also .ctp for Cake template file ! au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp setf php " PHP config au BufNewFile,BufRead php.ini-* setf dosini --- 1352,1361 ---- au BufNewFile,BufRead *.pod setf pod " Php, php3, php4, etc. ! " Also Phtml (was used for PHP 2 in the past). ! " Also .ctp for Cake template file. ! " Also .phpt for php tests. ! au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt setf php " PHP config au BufNewFile,BufRead php.ini-* setf dosini *** ../vim-8.2.4707/src/testdir/test_filetype.vim 2022-04-06 18:57:34.119958768 +0100 --- src/testdir/test_filetype.vim 2022-04-07 15:58:08.270395565 +0100 *************** *** 396,402 **** \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], \ 'pf': ['pf.conf'], \ 'pfmain': ['main.cf'], ! \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp'], \ 'lpc': ['file.lpc', 'file.ulpc'], \ 'pike': ['file.pike', 'file.pmod'], \ 'cmod': ['file.cmod'], --- 396,402 ---- \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], \ 'pf': ['pf.conf'], \ 'pfmain': ['main.cf'], ! \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt'], \ 'lpc': ['file.lpc', 'file.ulpc'], \ 'pike': ['file.pike', 'file.pmod'], \ 'cmod': ['file.cmod'], *** ../vim-8.2.4707/src/version.c 2022-04-07 15:07:42.684524332 +0100 --- src/version.c 2022-04-07 15:59:31.626238308 +0100 *************** *** 748,749 **** --- 748,751 ---- { /* Add new patch number below this line */ + /**/ + 4708, /**/ -- ERIC IDLE PLAYED: THE DEAD COLLECTOR, MR BINT (A VILLAGE NE'ER-DO -WELL VERY KEEN ON BURNING WITCHES), SIR ROBIN, THE GUARD WHO DOESN'T HICOUGH BUT TRIES TO GET THINGS STRAIGHT, CONCORDE (SIR LAUNCELOT'S TRUSTY STEED), ROGER THE SHRUBBER (A SHRUBBER), BROTHER MAYNARD "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///