forked from aniani/vim
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)
This commit is contained in:
4
runtime/autoload/dist/script.vim
vendored
4
runtime/autoload/dist/script.vim
vendored
@@ -189,6 +189,10 @@ def DetectFromHashBang(firstline: string)
|
|||||||
elseif name =~ 'gforth\>'
|
elseif name =~ 'gforth\>'
|
||||||
set ft=forth
|
set ft=forth
|
||||||
|
|
||||||
|
# Icon
|
||||||
|
elseif name =~ 'icon\>'
|
||||||
|
set ft=icon
|
||||||
|
|
||||||
endif
|
endif
|
||||||
enddef
|
enddef
|
||||||
|
|
||||||
|
@@ -718,6 +718,7 @@ let s:script_checks = {
|
|||||||
\ 'routeros': [['#!/path/rsc']],
|
\ 'routeros': [['#!/path/rsc']],
|
||||||
\ 'fish': [['#!/path/fish']],
|
\ 'fish': [['#!/path/fish']],
|
||||||
\ 'forth': [['#!/path/gforth']],
|
\ 'forth': [['#!/path/gforth']],
|
||||||
|
\ 'icon': [['#!/path/icon']],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Various forms of "env" optional arguments.
|
" Various forms of "env" optional arguments.
|
||||||
|
@@ -734,6 +734,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
5110,
|
||||||
/**/
|
/**/
|
||||||
5109,
|
5109,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user