Skip to content

Commit bf66146

Browse files
committed
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)
1 parent 7a1d328 commit bf66146

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

runtime/autoload/dist/script.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,10 @@ def DetectFromHashBang(firstline: string)
189189
elseif name =~ 'gforth\>'
190190
set ft=forth
191191

192+
# Icon
193+
elseif name =~ 'icon\>'
194+
set ft=icon
195+
192196
endif
193197
enddef
194198

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -718,6 +718,7 @@ let s:script_checks = {
718718
\ 'routeros': [['#!/path/rsc']],
719719
\ 'fish': [['#!/path/fish']],
720720
\ 'forth': [['#!/path/gforth']],
721+
\ 'icon': [['#!/path/icon']],
721722
\ }
722723

723724
" Various forms of "env" optional arguments.

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -734,6 +734,8 @@ static char *(features[]) =
734734

735735
static int included_patches[] =
736736
{ /* Add new patch number below this line */
737+
/**/
738+
5110,
737739
/**/
738740
5109,
739741
/**/

0 commit comments

Comments
 (0)