diff options
-rw-r--r-- | runtime/lua/vim/filetype/detect.lua | 1 | ||||
-rw-r--r-- | runtime/scripts.vim | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/runtime/lua/vim/filetype/detect.lua b/runtime/lua/vim/filetype/detect.lua index 37922b4ebf..c6d77dac51 100644 --- a/runtime/lua/vim/filetype/detect.lua +++ b/runtime/lua/vim/filetype/detect.lua @@ -1323,6 +1323,7 @@ local patterns_hashbang = { ['fish\\>'] = { 'fish', { vim_regex = true } }, ['gforth\\>'] = { 'forth', { vim_regex = true } }, ['icon\\>'] = { 'icon', { vim_regex = true } }, + guile = 'scheme', } ---@private diff --git a/runtime/scripts.vim b/runtime/scripts.vim index 49e9e259a2..a129c3467e 100644 --- a/runtime/scripts.vim +++ b/runtime/scripts.vim @@ -206,6 +206,10 @@ if s:line1 =~# "^#!" elseif s:name =~# 'icon\>' set ft=icon + " Guile + elseif s:name =~# 'guile' + set ft=scheme + endif unlet s:name |