]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.1134: filetype: Guile init file not recognized v9.1.1134
authorDavid Mandelberg <david@mandelberg.org>
Fri, 21 Feb 2025 19:13:54 +0000 (20:13 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 21 Feb 2025 19:13:54 +0000 (20:13 +0100)
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: #16683

Signed-off-by: David Mandelberg <david@mandelberg.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index b4207942ea4e76e62c0d37f77de99dab5d5522ba..0acd187181d2674b72993b27d01e90af39a03c39 100644 (file)
@@ -2347,8 +2347,8 @@ au BufNewFile,BufRead *.zsh,*.zsh-theme,*.zunit           setf zsh
 " Salt state files
 au BufNewFile,BufRead *.sls                    setf salt
 
-" Scheme, Supertux configuration, Lips.js history ("racket" patterns are now separate, see above)
-au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config,.lips_repl_history    setf scheme
+" Scheme, Supertux configuration, Lips.js history, Guile init file ("racket" patterns are now separate, see above)
+au BufNewFile,BufRead *.scm,*.ss,*.sld,*.stsg,*/supertux2/config,.lips_repl_history,.guile     setf scheme
 
 " Screen RC
 au BufNewFile,BufRead .screenrc,screenrc       setf screen
index 6fe383d871010f9e1d76ecfb94dcab187df75d89..3196856c03b4ac7ea2f3cd9d41ffe78b5606e095 100644 (file)
@@ -675,7 +675,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     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'],
index f552a271d7b39439cd8276b7a081b9305a6a2f51..620e7b26f5c69c332df547c4b4b0075c108516a5 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1134,
 /**/
     1133,
 /**/