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:
4
runtime/autoload/dist/script.vim
vendored
4
runtime/autoload/dist/script.vim
vendored
@ -189,6 +189,10 @@ def DetectFromHashBang(firstline: string)
|
||||
elseif name =~ 'gforth\>'
|
||||
set ft=forth
|
||||
|
||||
# Icon
|
||||
elseif name =~ 'icon\>'
|
||||
set ft=icon
|
||||
|
||||
endif
|
||||
enddef
|
||||
|
||||
|
||||
Reference in New Issue
Block a user