mirror of
				https://github.com/vim/vim.git
				synced 2025-10-30 09:47:20 -04:00 
			
		
		
		
	patch 9.0.0566: Nim files are not recognized
Problem: Nim files are not recognized. Solution: Add patterns for Nim files. (Nbiba Bedis, closes #11205)
This commit is contained in:
		
				
					committed by
					
						 Bram Moolenaar
						Bram Moolenaar
					
				
			
			
				
	
			
			
			
						parent
						
							dfa8be4944
						
					
				
				
					commit
					9fd1583c83
				
			| @@ -1278,6 +1278,9 @@ au BufNewFile,BufRead .netrc			setf netrc | |||||||
| " Nginx | " Nginx | ||||||
| au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf			setf nginx | au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf			setf nginx | ||||||
|  |  | ||||||
|  | " Nim file | ||||||
|  | au BufNewFile,BufRead *.nim,*.nims,*.nimble	setf nim | ||||||
|  |  | ||||||
| " Ninja file | " Ninja file | ||||||
| au BufNewFile,BufRead *.ninja			setf ninja | au BufNewFile,BufRead *.ninja			setf ninja | ||||||
|  |  | ||||||
|   | |||||||
| @@ -387,6 +387,7 @@ let s:filename_checks = { | |||||||
|     \ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'], |     \ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'], | ||||||
|     \ 'netrc': ['.netrc'], |     \ 'netrc': ['.netrc'], | ||||||
|     \ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'], |     \ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'], | ||||||
|  |     \ 'nim': ['file.nim', 'file.nims', 'file.nimble'], | ||||||
|     \ 'ninja': ['file.ninja'], |     \ 'ninja': ['file.ninja'], | ||||||
|     \ 'nix': ['file.nix'], |     \ 'nix': ['file.nix'], | ||||||
|     \ 'nqc': ['file.nqc'], |     \ 'nqc': ['file.nqc'], | ||||||
|   | |||||||
| @@ -699,6 +699,8 @@ static char *(features[]) = | |||||||
|  |  | ||||||
| static int included_patches[] = | static int included_patches[] = | ||||||
| {   /* Add new patch number below this line */ | {   /* Add new patch number below this line */ | ||||||
|  | /**/ | ||||||
|  |     566, | ||||||
| /**/ | /**/ | ||||||
|     565, |     565, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user