mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-03 17:24:29 +00:00 
			
		
		
		
	vim-patch:9.1.0306: filetype: x11vnc config file is not recognized
Problem:  filetype: x11vnc config file is not recognized
Solution: Detect '.x11vncrc' as conf filetype
          (Wu, Zhenyu)
See: https://linux.die.net/man/1/x11vnc
closes: vim/vim#14511
58ce78ad43
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
			
			
This commit is contained in:
		@@ -1302,6 +1302,7 @@ local filename = {
 | 
			
		||||
  ['csh.login'] = detect.csh,
 | 
			
		||||
  ['csh.logout'] = detect.csh,
 | 
			
		||||
  ['auto.master'] = 'conf',
 | 
			
		||||
  ['.x11vncrc'] = 'conf',
 | 
			
		||||
  ['configure.in'] = 'config',
 | 
			
		||||
  ['configure.ac'] = 'config',
 | 
			
		||||
  crontab = 'crontab',
 | 
			
		||||
 
 | 
			
		||||
@@ -163,7 +163,7 @@ func s:GetFilenameChecks() abort
 | 
			
		||||
    \ 'cobol': ['file.cbl', 'file.cob', 'file.lib'],
 | 
			
		||||
    \ 'coco': ['file.atg'],
 | 
			
		||||
    \ 'conaryrecipe': ['file.recipe'],
 | 
			
		||||
    \ 'conf': ['auto.master', 'file.conf'],
 | 
			
		||||
    \ 'conf': ['auto.master', 'file.conf', '.x11vncrc'],
 | 
			
		||||
    \ 'config': ['configure.in', 'configure.ac', '/etc/hostname.file', 'any/etc/hostname.file'],
 | 
			
		||||
    \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
 | 
			
		||||
    \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user