mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:9.1.1321: filetype: MS ixx and mpp files are not recognized
Problem:  filetype: MS ixx and mpp files are not recognized
Solution: detect *.mpp and *.ixx files as c++ filetype
          (Hampus Avekvist)
closes: vim/vim#17155
aee34ef23e
Co-authored-by: Hampus Avekvist <hampus.avekvist@hey.com>
			
			
This commit is contained in:
		 Christian Clason
					Christian Clason
				
			
				
					committed by
					
						 Christian Clason
						Christian Clason
					
				
			
			
				
	
			
			
			 Christian Clason
						Christian Clason
					
				
			
						parent
						
							df96276b19
						
					
				
				
					commit
					1b0dedb81c
				
			| @@ -345,6 +345,8 @@ local extension = { | |||||||
|   tcc = 'cpp', |   tcc = 'cpp', | ||||||
|   hxx = 'cpp', |   hxx = 'cpp', | ||||||
|   hpp = 'cpp', |   hpp = 'cpp', | ||||||
|  |   ixx = 'cpp', | ||||||
|  |   mpp = 'cpp', | ||||||
|   ccm = 'cpp', |   ccm = 'cpp', | ||||||
|   cppm = 'cpp', |   cppm = 'cpp', | ||||||
|   cxxm = 'cpp', |   cxxm = 'cpp', | ||||||
|   | |||||||
| @@ -188,7 +188,7 @@ func s:GetFilenameChecks() abort | |||||||
|     \ 'cook': ['file.cook'], |     \ 'cook': ['file.cook'], | ||||||
|     \ 'corn': ['file.corn'], |     \ 'corn': ['file.corn'], | ||||||
|     \ 'cpon': ['file.cpon'], |     \ 'cpon': ['file.cpon'], | ||||||
|     \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m'], |     \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.ixx', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m', 'file.mpp'], | ||||||
|     \ 'cqlang': ['file.cql'], |     \ 'cqlang': ['file.cql'], | ||||||
|     \ 'crm': ['file.crm'], |     \ 'crm': ['file.crm'], | ||||||
|     \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'], |     \ 'crontab': ['crontab', 'crontab.file', '/etc/cron.d/file', 'any/etc/cron.d/file'], | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user