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

41a6026f00

Co-authored-by: David Mandelberg <david@mandelberg.org>
This commit is contained in:
Christian Clason
2025-02-22 11:09:02 +01:00
committed by Christian Clason
parent 010684e024
commit 228fe50087
2 changed files with 2 additions and 1 deletions

View File

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

View File

@@ -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'],