1
0
forked from aniani/vim

patch 8.2.4708: PHP test files are not recognized

Problem:    PHP test files are not recognized.
Solution:   Add the *.phpt pattern. (Julien Voisin, closes #10112)
This commit is contained in:
Julien Voisin
2022-04-07 16:01:13 +01:00
committed by Bram Moolenaar
parent 8c97960850
commit 177847e67a
3 changed files with 7 additions and 4 deletions

View File

@@ -1352,9 +1352,10 @@ au BufNewFile,BufRead *.pm
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
" 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