mirror of
				https://github.com/vim/vim.git
				synced 2025-10-30 09:47:20 -04:00 
			
		
		
		
	patch 8.2.5015: Hoon and Moonscript files are not recognized
Problem: Hoon and Moonscript files are not recognized. Solution: Add filetype patterns. (Goc Dundar, closes #10478)
This commit is contained in:
		
				
					committed by
					
						 Bram Moolenaar
						Bram Moolenaar
					
				
			
			
				
	
			
			
			
						parent
						
							4c3d21acaa
						
					
				
				
					commit
					bf82df0dd4
				
			| @@ -409,7 +409,7 @@ au BufNewFile,BufRead *.cu,*.cuh		setf cuda | |||||||
|  |  | ||||||
| " Dockerfile; Podman uses the same syntax with name Containerfile | " Dockerfile; Podman uses the same syntax with name Containerfile | ||||||
| " Also see Dockerfile.* below. | " Also see Dockerfile.* below. | ||||||
| au BufNewFile,BufRead Containerfile,Dockerfile,*.Dockerfile	setf dockerfile | au BufNewFile,BufRead Containerfile,Dockerfile,dockerfile,*.[dD]ockerfile	setf dockerfile | ||||||
|  |  | ||||||
| " WildPackets EtherPeek Decoder | " WildPackets EtherPeek Decoder | ||||||
| au BufNewFile,BufRead *.dcd			setf dcd | au BufNewFile,BufRead *.dcd			setf dcd | ||||||
| @@ -819,6 +819,9 @@ au BufNewFile,BufRead *.hjson			setf hjson | |||||||
| " Hollywood | " Hollywood | ||||||
| au BufRead,BufNewFile *.hws			setf hollywood | au BufRead,BufNewFile *.hws			setf hollywood | ||||||
|  |  | ||||||
|  | " Hoon | ||||||
|  | au BufRead,BufNewFile *.hoon			setf hoon | ||||||
|  |  | ||||||
| " Tilde (must be before HTML) | " Tilde (must be before HTML) | ||||||
| au BufNewFile,BufRead *.t.html			setf tilde | au BufNewFile,BufRead *.t.html			setf tilde | ||||||
|  |  | ||||||
| @@ -1172,6 +1175,9 @@ au BufNewFile,BufRead *.isc,*.monk,*.ssc,*.tsc	setf monk | |||||||
| " MOO | " MOO | ||||||
| au BufNewFile,BufRead *.moo			setf moo | au BufNewFile,BufRead *.moo			setf moo | ||||||
|  |  | ||||||
|  | " Moonscript | ||||||
|  | au BufNewFile,BufRead *.moon			setf moonscript | ||||||
|  |  | ||||||
| " Modconf | " Modconf | ||||||
| au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf | au BufNewFile,BufRead */etc/modules.conf,*/etc/modules,*/etc/conf.modules setf modconf | ||||||
|  |  | ||||||
|   | |||||||
| @@ -151,7 +151,7 @@ let s:filename_checks = { | |||||||
|     \ 'diff': ['file.diff', 'file.rej'], |     \ 'diff': ['file.diff', 'file.rej'], | ||||||
|     \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'], |     \ 'dircolors': ['.dir_colors', '.dircolors', '/etc/DIR_COLORS', 'any/etc/DIR_COLORS'], | ||||||
|     \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'], |     \ 'dnsmasq': ['/etc/dnsmasq.conf', '/etc/dnsmasq.d/file', 'any/etc/dnsmasq.conf', 'any/etc/dnsmasq.d/file'], | ||||||
|     \ 'dockerfile': ['Containerfile', 'Dockerfile', 'file.Dockerfile', 'Dockerfile.debian', 'Containerfile.something'], |     \ 'dockerfile': ['Containerfile', 'Dockerfile', 'dockerfile', 'file.Dockerfile', 'file.dockerfile', 'Dockerfile.debian', 'Containerfile.something'], | ||||||
|     \ 'dosbatch': ['file.bat'], |     \ 'dosbatch': ['file.bat'], | ||||||
|     \ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'], |     \ 'dosini': ['.editorconfig', '/etc/yum.conf', 'file.ini', 'npmrc', '.npmrc', 'php.ini', 'php.ini-5', 'php.ini-file', '/etc/yum.repos.d/file', 'any/etc/yum.conf', 'any/etc/yum.repos.d/file', 'file.wrap'], | ||||||
|     \ 'dot': ['file.dot', 'file.gv'], |     \ 'dot': ['file.dot', 'file.gv'], | ||||||
| @@ -245,6 +245,7 @@ let s:filename_checks = { | |||||||
|     \ 'hjson': ['file.hjson'], |     \ 'hjson': ['file.hjson'], | ||||||
|     \ 'hog': ['file.hog', 'snort.conf', 'vision.conf'], |     \ 'hog': ['file.hog', 'snort.conf', 'vision.conf'], | ||||||
|     \ 'hollywood': ['file.hws'], |     \ 'hollywood': ['file.hws'], | ||||||
|  |     \ 'hoon': ['file.hoon'], | ||||||
|     \ 'hostconf': ['/etc/host.conf', 'any/etc/host.conf'], |     \ 'hostconf': ['/etc/host.conf', 'any/etc/host.conf'], | ||||||
|     \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'], |     \ 'hostsaccess': ['/etc/hosts.allow', '/etc/hosts.deny', 'any/etc/hosts.allow', 'any/etc/hosts.deny'], | ||||||
|     \ 'html': ['file.html', 'file.htm', 'file.cshtml'], |     \ 'html': ['file.html', 'file.htm', 'file.cshtml'], | ||||||
| @@ -354,6 +355,7 @@ let s:filename_checks = { | |||||||
|     \ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig'], |     \ 'modula3': ['file.m3', 'file.mg', 'file.i3', 'file.ig'], | ||||||
|     \ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'], |     \ 'monk': ['file.isc', 'file.monk', 'file.ssc', 'file.tsc'], | ||||||
|     \ 'moo': ['file.moo'], |     \ 'moo': ['file.moo'], | ||||||
|  |     \ 'moonscript': ['file.moon'], | ||||||
|     \ 'mp': ['file.mp'], |     \ 'mp': ['file.mp'], | ||||||
|     \ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'], |     \ 'mplayerconf': ['mplayer.conf', '/.mplayer/config', 'any/.mplayer/config'], | ||||||
|     \ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'], |     \ 'mrxvtrc': ['mrxvtrc', '.mrxvtrc'], | ||||||
|   | |||||||
| @@ -734,6 +734,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 */ | ||||||
|  | /**/ | ||||||
|  |     5015, | ||||||
| /**/ | /**/ | ||||||
|     5014, |     5014, | ||||||
| /**/ | /**/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user