commit 228fe500878073249432e07d8b1cc36b37b42257
parent 010684e0240d86ec88e25dd485b2044297bbf62e
Author: Christian Clason <c.clason@uni-graz.at>
Date: Sat, 22 Feb 2025 11:09:02 +0100
vim-patch:9.1.1134: filetype: Guile init file not recognized
Problem: filetype: Guile init file not recognized
Solution: detect '.guile' file as scheme filetype
(David Mandelberg)
References:
https://www.gnu.org/software/guile/manual/html_node/Init-File.html
> When run interactively, Guile will load a local initialization file
> from ~/.guile. This file should contain Scheme expressions for
> evaluation.
closes: vim/vim#16683
https://github.com/vim/vim/commit/41a6026f007facb1ada3ff2a63a054913432860c
Co-authored-by: David Mandelberg <david@mandelberg.org>
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -1802,6 +1802,7 @@ local filename = {
Vagrantfile = 'ruby',
['smb.conf'] = 'samba',
['.lips_repl_history'] = 'scheme',
+ ['.guile'] = 'scheme',
screenrc = 'screen',
['.screenrc'] = 'screen',
['/etc/sensors3.conf'] = 'sensors',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -672,7 +672,7 @@ func s:GetFilenameChecks() abort
\ 'sass': ['file.sass'],
\ 'sbt': ['file.sbt'],
\ 'scala': ['file.scala', 'file.mill'],
- \ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history'],
+ \ 'scheme': ['file.scm', 'file.ss', 'file.sld', 'file.stsg', 'any/local/share/supertux2/config', '.lips_repl_history', '.guile'],
\ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'],
\ 'scss': ['file.scss'],