diff options
author | smjonas <jonas.strittmatter@gmx.de> | 2022-07-06 01:26:18 +0200 |
---|---|---|
committer | smjonas <jonas.strittmatter@gmx.de> | 2022-07-06 01:33:45 +0200 |
commit | 78300a1587dc43a363744da28f6d5e4ef40ca0bb (patch) | |
tree | e028cc080a967b5a45f0b5506644f2602ba92e2b | |
parent | 8b7399782e7054fa76b745f51f742dfc5236902d (diff) | |
download | rneovim-78300a1587dc43a363744da28f6d5e4ef40ca0bb.tar.gz rneovim-78300a1587dc43a363744da28f6d5e4ef40ca0bb.tar.bz2 rneovim-78300a1587dc43a363744da28f6d5e4ef40ca0bb.zip |
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
-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 |