mirror of
				https://github.com/neovim/neovim.git
				synced 2025-11-04 09:44:31 +00:00 
			
		
		
		
	vim-patch:9.1.0234: filetype: support for Intel HEX files is lacking
Problem:  filetype: support for Intel HEX files is lacking
Solution: Add more file extensions that are typical for Intel HEX files
          (Wu, Zhenyu)
Reference: https://en.wikipedia.org/wiki/Intel_HEX
closes: vim/vim#14355
e523dd9803
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
			
			
This commit is contained in:
		@@ -504,7 +504,16 @@ local extension = {
 | 
				
			|||||||
  vc = 'hercules',
 | 
					  vc = 'hercules',
 | 
				
			||||||
  heex = 'heex',
 | 
					  heex = 'heex',
 | 
				
			||||||
  hex = 'hex',
 | 
					  hex = 'hex',
 | 
				
			||||||
 | 
					  ['a43'] = 'hex',
 | 
				
			||||||
 | 
					  ['a90'] = 'hex',
 | 
				
			||||||
  ['h32'] = 'hex',
 | 
					  ['h32'] = 'hex',
 | 
				
			||||||
 | 
					  ['h80'] = 'hex',
 | 
				
			||||||
 | 
					  ['h86'] = 'hex',
 | 
				
			||||||
 | 
					  ihex = 'hex',
 | 
				
			||||||
 | 
					  ihe = 'hex',
 | 
				
			||||||
 | 
					  ihx = 'hex',
 | 
				
			||||||
 | 
					  int = 'hex',
 | 
				
			||||||
 | 
					  mcs = 'hex',
 | 
				
			||||||
  hjson = 'hjson',
 | 
					  hjson = 'hjson',
 | 
				
			||||||
  m3u = 'hlsplaylist',
 | 
					  m3u = 'hlsplaylist',
 | 
				
			||||||
  m3u8 = 'hlsplaylist',
 | 
					  m3u8 = 'hlsplaylist',
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -302,7 +302,7 @@ func s:GetFilenameChecks() abort
 | 
				
			|||||||
    \ 'hcl': ['file.hcl'],
 | 
					    \ 'hcl': ['file.hcl'],
 | 
				
			||||||
    \ 'heex': ['file.heex'],
 | 
					    \ 'heex': ['file.heex'],
 | 
				
			||||||
    \ 'hercules': ['file.vc', 'file.ev', 'file.sum', 'file.errsum'],
 | 
					    \ 'hercules': ['file.vc', 'file.ev', 'file.sum', 'file.errsum'],
 | 
				
			||||||
    \ 'hex': ['file.hex', 'file.h32'],
 | 
					    \ 'hex': ['file.hex', 'file.ihex', 'file.ihe', 'file.ihx', 'file.int', 'file.mcs', 'file.h32', 'file.h80', 'file.h86', 'file.a43', 'file.a90'],
 | 
				
			||||||
    \ 'hgcommit': ['hg-editor-file.txt'],
 | 
					    \ 'hgcommit': ['hg-editor-file.txt'],
 | 
				
			||||||
    \ 'hjson': ['file.hjson'],
 | 
					    \ 'hjson': ['file.hjson'],
 | 
				
			||||||
    \ 'hlsplaylist': ['file.m3u', 'file.m3u8'],
 | 
					    \ 'hlsplaylist': ['file.m3u', 'file.m3u8'],
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user