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.
3244780379
This commit is contained in:
smjonas
2022-07-06 01:26:18 +02:00
parent 8b7399782e
commit 78300a1587
2 changed files with 5 additions and 0 deletions

View File

@@ -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

View File

@@ -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