mirror of
https://github.com/vim/vim.git
synced 2025-09-29 04:34:16 -04:00
patch 9.1.0777: filetype: Some upstream php files are not recognized
Problem: filetype: Some upstream php files are not recognized Solution: Detect more config files from the PHP source distribution as filetype ini (nisbet-hubbard). closes: #15840 Signed-off-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
05d0893ed8
commit
367499c5c3
@@ -1800,7 +1800,7 @@ au BufNewFile,BufRead *.pod setf pod
|
|||||||
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt,*.theme setf php
|
au BufNewFile,BufRead *.php,*.php\d,*.phtml,*.ctp,*.phpt,*.theme setf php
|
||||||
|
|
||||||
" PHP config
|
" PHP config
|
||||||
au BufNewFile,BufRead php.ini-* setf dosini
|
au BufNewFile,BufRead php.ini-*,php-fpm.conf*,www.conf* setf dosini
|
||||||
|
|
||||||
" Pike and Cmod
|
" Pike and Cmod
|
||||||
au BufNewFile,BufRead *.pike,*.pmod setf pike
|
au BufNewFile,BufRead *.pike,*.pmod setf pike
|
||||||
|
@@ -226,7 +226,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
|||||||
dockerfile: ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'],
|
dockerfile: ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'],
|
||||||
dosbatch: ['file.bat'],
|
dosbatch: ['file.bat'],
|
||||||
dosini: ['/etc/yum.conf', '/etc/nfs.conf', '/etc/nfsmount.conf', 'file.ini',
|
dosini: ['/etc/yum.conf', '/etc/nfs.conf', '/etc/nfsmount.conf', 'file.ini',
|
||||||
'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file',
|
'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', 'php-fpm.conf', 'php-fpm.conf.default', 'www.conf', 'www.conf.default',
|
||||||
'/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap',
|
'/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap',
|
||||||
'file.vbp', 'ja2.ini', 'JA2.INI', 'mimeapps.list', 'pip.conf', 'setup.cfg', 'pudb.cfg',
|
'file.vbp', 'ja2.ini', 'JA2.INI', 'mimeapps.list', 'pip.conf', 'setup.cfg', 'pudb.cfg',
|
||||||
'.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc',
|
'.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc',
|
||||||
|
@@ -704,6 +704,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 */
|
||||||
|
/**/
|
||||||
|
777,
|
||||||
/**/
|
/**/
|
||||||
776,
|
776,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user