commit 35c9fe98958ddcdcb8d4febe381e07b80fa73835
parent 179faa3edd6120a483b55aadf0a367fbf07b25fd
Author: Christian Clason <c.clason@uni-graz.at>
Date: Thu, 16 Jun 2022 15:53:38 +0200
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
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git 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
diff --git a/src/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim
@@ -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.