summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-06-16 13:27:18 +0100
committerBram Moolenaar <Bram@vim.org>2022-06-16 13:27:18 +0100
commitbf6614643f656d38d220c04befdcb1d35774853a (patch)
tree248bb76d0a6f8ee1089f9869c4be08f197b13920 /runtime
parent7a1d32809bb5c1527314000983e75125d79192e0 (diff)
patch 8.2.5110: icon filetype not recognized from the first linev8.2.5110
Problem: Icon filetype not recognized from the first line. Solution: Add a check for the first line. (Doug Kearns)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/autoload/dist/script.vim4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim
index b926f31566..86070a0af9 100644
--- a/runtime/autoload/dist/script.vim
+++ b/runtime/autoload/dist/script.vim
@@ -189,6 +189,10 @@ def DetectFromHashBang(firstline: string)
elseif name =~ 'gforth\>'
set ft=forth
+ # Icon
+ elseif name =~ 'icon\>'
+ set ft=icon
+
endif
enddef