diff runtime/autoload/dist/script.vim @ 29181:71759abd2145 v8.2.5110

patch 8.2.5110: icon filetype not recognized from the first line Commit: https://github.com/vim/vim/commit/bf6614643f656d38d220c04befdcb1d35774853a Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 16 13:27:18 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 16 Jun 2022 14:30:03 +0200
parents 7346315e8517
children 88d62ab596e8
line wrap: on
line diff
--- 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