mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	vim-patch:8.2.5110: icon filetype not recognized from the first line (#18987)
Problem:    Icon filetype not recognized from the first line.
Solution:   Add a check for the first line. (Doug Kearns)
bf6614643f
			
			
This commit is contained in:
		| @@ -202,6 +202,10 @@ if s:line1 =~# "^#!" | ||||
|   elseif s:name =~# 'gforth\>' | ||||
|     set ft=forth | ||||
|  | ||||
|     " Icon | ||||
|   elseif s:name =~# 'icon\>' | ||||
|     set ft=icon | ||||
|  | ||||
|   endif | ||||
|   unlet s:name | ||||
|  | ||||
|   | ||||
| @@ -717,6 +717,7 @@ let s:script_checks = { | ||||
|       \ 'routeros': [['#!/path/rsc']], | ||||
|       \ 'fish': [['#!/path/fish']], | ||||
|       \ 'forth': [['#!/path/gforth']], | ||||
|       \ 'icon': [['#!/path/icon']], | ||||
|       \ } | ||||
|  | ||||
| " Various forms of "env" optional arguments. | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Christian Clason
					Christian Clason