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\>' |   elseif s:name =~# 'gforth\>' | ||||||
|     set ft=forth |     set ft=forth | ||||||
|  |  | ||||||
|  |     " Icon | ||||||
|  |   elseif s:name =~# 'icon\>' | ||||||
|  |     set ft=icon | ||||||
|  |  | ||||||
|   endif |   endif | ||||||
|   unlet s:name |   unlet s:name | ||||||
|  |  | ||||||
|   | |||||||
| @@ -717,6 +717,7 @@ let s:script_checks = { | |||||||
|       \ 'routeros': [['#!/path/rsc']], |       \ 'routeros': [['#!/path/rsc']], | ||||||
|       \ 'fish': [['#!/path/fish']], |       \ 'fish': [['#!/path/fish']], | ||||||
|       \ 'forth': [['#!/path/gforth']], |       \ 'forth': [['#!/path/gforth']], | ||||||
|  |       \ 'icon': [['#!/path/icon']], | ||||||
|       \ } |       \ } | ||||||
|  |  | ||||||
| " Various forms of "env" optional arguments. | " Various forms of "env" optional arguments. | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Christian Clason
					Christian Clason