patch 8.2.5110: icon filetype not recognized from the first line

Problem:    Icon filetype not recognized from the first line.
Solution:   Add a check for the first line. (Doug Kearns)
This commit is contained in:
Bram Moolenaar
2022-06-16 13:27:18 +01:00
parent 7a1d32809b
commit bf6614643f
3 changed files with 7 additions and 0 deletions

View File

@ -189,6 +189,10 @@ def DetectFromHashBang(firstline: string)
elseif name =~ 'gforth\>'
set ft=forth
# Icon
elseif name =~ 'icon\>'
set ft=icon
endif
enddef