mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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: vim/vim#15840
367499c5c3
Co-authored-by: nisbet-hubbard <87453615+nisbet-hubbard@users.noreply.github.com>
This commit is contained in:
parent
5c2f2a0c65
commit
06625f9b3a
@ -2296,6 +2296,8 @@ local pattern = {
|
||||
['^crontab%.'] = starsetf('crontab'),
|
||||
['^cvs%d+$'] = 'cvs',
|
||||
['^php%.ini%-'] = 'dosini',
|
||||
['^php%-fpm%.conf'] = 'dosini',
|
||||
['^www%.conf'] = 'dosini',
|
||||
['^drac%.'] = starsetf('dracula'),
|
||||
['/dtrace/.*%.d$'] = 'dtrace',
|
||||
['esmtprc$'] = 'esmtprc',
|
||||
|
@ -227,7 +227,7 @@ func s:GetFilenameChecks() abort
|
||||
\ 'dockerfile': ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'],
|
||||
\ 'dosbatch': ['file.bat'],
|
||||
\ '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',
|
||||
\ 'file.vbp', 'ja2.ini', 'JA2.INI', 'mimeapps.list', 'pip.conf', 'setup.cfg', 'pudb.cfg',
|
||||
\ '.coveragerc', '.pypirc', '.gitlint', '.oelint.cfg', 'pylintrc', '.pylintrc',
|
||||
|
Loading…
Reference in New Issue
Block a user