diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-06-16 13:27:18 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-06-16 13:27:18 +0100 |
commit | bf6614643f656d38d220c04befdcb1d35774853a (patch) | |
tree | 248bb76d0a6f8ee1089f9869c4be08f197b13920 | |
parent | 7a1d32809bb5c1527314000983e75125d79192e0 (diff) | |
download | vim-git-bf6614643f656d38d220c04befdcb1d35774853a.tar.gz |
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)
-rw-r--r-- | runtime/autoload/dist/script.vim | 4 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/runtime/autoload/dist/script.vim b/runtime/autoload/dist/script.vim index b926f3156..86070a0af 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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 5f10aacac..6c2343b1e 100644 --- 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 index e581f1a02..1f38480d0 100644 --- 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, |