mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
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:
parent
8c97960850
commit
177847e67a
@ -1352,9 +1352,10 @@ au BufNewFile,BufRead *.pm
|
|||||||
au BufNewFile,BufRead *.pod setf pod
|
au BufNewFile,BufRead *.pod setf pod
|
||||||
|
|
||||||
" Php, php3, php4, etc.
|
" Php, php3, php4, etc.
|
||||||
" Also Phtml (was used for PHP 2 in the past)
|
" Also Phtml (was used for PHP 2 in the past).
|
||||||
" Also .ctp for Cake template file
|
" Also .ctp for Cake template file.
|
||||||
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp setf php
|
" Also .phpt for php tests.
|
||||||
|
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt setf php
|
||||||
|
|
||||||
" PHP config
|
" PHP config
|
||||||
au BufNewFile,BufRead php.ini-* setf dosini
|
au BufNewFile,BufRead php.ini-* setf dosini
|
||||||
|
@ -396,7 +396,7 @@ let s:filename_checks = {
|
|||||||
\ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'],
|
\ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'],
|
||||||
\ 'pf': ['pf.conf'],
|
\ 'pf': ['pf.conf'],
|
||||||
\ 'pfmain': ['main.cf'],
|
\ 'pfmain': ['main.cf'],
|
||||||
\ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp'],
|
\ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp', 'file.phpt'],
|
||||||
\ 'lpc': ['file.lpc', 'file.ulpc'],
|
\ 'lpc': ['file.lpc', 'file.ulpc'],
|
||||||
\ 'pike': ['file.pike', 'file.pmod'],
|
\ 'pike': ['file.pike', 'file.pmod'],
|
||||||
\ 'cmod': ['file.cmod'],
|
\ 'cmod': ['file.cmod'],
|
||||||
|
@ -746,6 +746,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
4708,
|
||||||
/**/
|
/**/
|
||||||
4707,
|
4707,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user