mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
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:
@@ -1323,6 +1323,7 @@ local patterns_hashbang = {
|
|||||||
['fish\\>'] = { 'fish', { vim_regex = true } },
|
['fish\\>'] = { 'fish', { vim_regex = true } },
|
||||||
['gforth\\>'] = { 'forth', { vim_regex = true } },
|
['gforth\\>'] = { 'forth', { vim_regex = true } },
|
||||||
['icon\\>'] = { 'icon', { vim_regex = true } },
|
['icon\\>'] = { 'icon', { vim_regex = true } },
|
||||||
|
guile = 'scheme',
|
||||||
}
|
}
|
||||||
|
|
||||||
---@private
|
---@private
|
||||||
|
@@ -206,6 +206,10 @@ if s:line1 =~# "^#!"
|
|||||||
elseif s:name =~# 'icon\>'
|
elseif s:name =~# 'icon\>'
|
||||||
set ft=icon
|
set ft=icon
|
||||||
|
|
||||||
|
" Guile
|
||||||
|
elseif s:name =~# 'guile'
|
||||||
|
set ft=scheme
|
||||||
|
|
||||||
endif
|
endif
|
||||||
unlet s:name
|
unlet s:name
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user