From 35c9fe98958ddcdcb8d4febe381e07b80fa73835 Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Thu, 16 Jun 2022 15:53:38 +0200 Subject: 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) https://github.com/vim/vim/commit/bf6614643f656d38d220c04befdcb1d35774853a --- runtime/scripts.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/scripts.vim b/runtime/scripts.vim index dd47f65ba0..36763a4a82 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -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 -- cgit