# HG changeset patch # User Bram Moolenaar # Date 1655382603 -7200 # Node ID 71759abd214554b81c75195fb5fc7796ed5526ca # Parent e2fe9d2d2b78bac5b00308cd6286f75f5d302e85 patch 8.2.5110: icon filetype not recognized from the first line Commit: https://github.com/vim/vim/commit/bf6614643f656d38d220c04befdcb1d35774853a Author: Bram Moolenaar 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) diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim --- 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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -718,6 +718,7 @@ let s:script_checks = { \ 'routeros': [['#!/path/rsc']], \ 'fish': [['#!/path/fish']], \ 'forth': [['#!/path/gforth']], + \ 'icon': [['#!/path/icon']], \ } " Various forms of "env" optional arguments. diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -735,6 +735,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 5110, +/**/ 5109, /**/ 5108,