commit 78300a1587dc43a363744da28f6d5e4ef40ca0bb
parent 8b7399782e7054fa76b745f51f742dfc5236902d
Author: smjonas <jonas.strittmatter@gmx.de>
Date: Wed, 6 Jul 2022 01:26:18 +0200
vim-patch:9.0.0042: missing change for filetype detection
Problem: Missing change for filetype detection.
Solution: Include change to detect guile from shebang line.
https://github.com/vim/vim/commit/324478037923feef1eb8a771648e38ade9e5e05a
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git 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
@@ -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