mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07: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:
parent
179faa3edd
commit
35c9fe9895
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user