mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 01:34:25 +00:00 
			
		
		
		
	vim-patch:9.1.0245: filetype: zsh theme, history and zunit files are not recognized
Problem:  filetype: zsh theme, history and zunit files are not
          recognized.
Solution: Detect '.zsh_history', '*.zsh-theme' and '*.zunit' as zsh
          (Wu, Zhenyu)
closes: vim/vim#14366
a55a22a1a3
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
			
			
This commit is contained in:
		@@ -1155,6 +1155,8 @@ local extension = {
 | 
				
			|||||||
  zut = 'zimbutempl',
 | 
					  zut = 'zimbutempl',
 | 
				
			||||||
  zs = 'zserio',
 | 
					  zs = 'zserio',
 | 
				
			||||||
  zsh = 'zsh',
 | 
					  zsh = 'zsh',
 | 
				
			||||||
 | 
					  zunit = 'zsh',
 | 
				
			||||||
 | 
					  ['zsh-theme'] = 'zsh',
 | 
				
			||||||
  vala = 'vala',
 | 
					  vala = 'vala',
 | 
				
			||||||
  web = detect.web,
 | 
					  web = detect.web,
 | 
				
			||||||
  pl = detect.pl,
 | 
					  pl = detect.pl,
 | 
				
			||||||
@@ -1573,6 +1575,7 @@ local filename = {
 | 
				
			|||||||
  ['.zshrc'] = 'zsh',
 | 
					  ['.zshrc'] = 'zsh',
 | 
				
			||||||
  ['.zprofile'] = 'zsh',
 | 
					  ['.zprofile'] = 'zsh',
 | 
				
			||||||
  ['.zcompdump'] = 'zsh',
 | 
					  ['.zcompdump'] = 'zsh',
 | 
				
			||||||
 | 
					  ['.zsh_history'] = 'zsh',
 | 
				
			||||||
  ['.zshenv'] = 'zsh',
 | 
					  ['.zshenv'] = 'zsh',
 | 
				
			||||||
  ['.zfbfmarks'] = 'zsh',
 | 
					  ['.zfbfmarks'] = 'zsh',
 | 
				
			||||||
  -- END FILENAME
 | 
					  -- END FILENAME
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -750,8 +750,7 @@ func s:GetFilenameChecks() abort
 | 
				
			|||||||
    \ 'zimbu': ['file.zu'],
 | 
					    \ 'zimbu': ['file.zu'],
 | 
				
			||||||
    \ 'zimbutempl': ['file.zut'],
 | 
					    \ 'zimbutempl': ['file.zut'],
 | 
				
			||||||
    \ 'zserio': ['file.zs'],
 | 
					    \ 'zserio': ['file.zs'],
 | 
				
			||||||
    \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
 | 
					    \ 'zsh': ['.zprofile', '/etc/zprofile', '.zfbfmarks', 'file.zsh', 'file.zsh-theme', 'file.zunit', '.zcompdump', '.zlogin', '.zlogout', '.zshenv', '.zshrc', '.zsh_history', '.zcompdump-file', '.zlog', '.zlog-file', '.zsh', '.zsh-file', 'any/etc/zprofile', 'zlog', 'zlog-file', 'zsh', 'zsh-file'],
 | 
				
			||||||
    \
 | 
					 | 
				
			||||||
    \ 'help': [$VIMRUNTIME . '/doc/help.txt'],
 | 
					    \ 'help': [$VIMRUNTIME . '/doc/help.txt'],
 | 
				
			||||||
    \ }
 | 
					    \ }
 | 
				
			||||||
endfunc
 | 
					endfunc
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user