patch 9.2.0390: filetype: some Beancount files are not recognized

Commit: 
https://github.com/vim/vim/commit/521eac1877355d408c8c57bc31947cc86f31f41d
Author: Bruno Belanyi <[email protected]>
Date:   Thu Apr 23 15:56:30 2026 +0000

    patch 9.2.0390: filetype: some Beancount files are not recognized
    
    Problem:  filetype: some Beancount files are not recognized
    Solution: Detect *.bean files as beancount filetype
              (Bruno Belanyi)
    
    closes: #20037
    
    Signed-off-by: Bruno Belanyi <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim
index 7b7fb2954..761ff644c 100644
--- a/runtime/autoload/dist/ft.vim
+++ b/runtime/autoload/dist/ft.vim
@@ -3,7 +3,7 @@ vim9script
 # Vim functions for file type detection
 #
 # Maintainer:          The Vim Project <https://github.com/vim/vim>
-# Last Change:         2026 Apr 20
+# Last Change:         2026 Apr 23
 # Former Maintainer:   Bram Moolenaar <[email protected]>
 
 # These functions are moved here from runtime/filetype.vim to make startup
@@ -1798,6 +1798,7 @@ const ft_from_ext = {
   # BDF font
   "bdf": "bdf",
   # Beancount
+  "bean": "beancount",
   "beancount": "beancount",
   # BibTeX bibliography database file
   "bib": "bib",
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 583dad4d1..5040ac0e6 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -138,7 +138,7 @@ def s:GetFilenameChecks(): dict<list<string>>
     bass: ['file.bass'],
     bc: ['file.bc'],
     bdf: ['file.bdf'],
-    beancount: ['file.beancount'],
+    beancount: ['file.beancount', 'file.bean'],
     bib: ['file.bib'],
     bicep: ['file.bicep'],
     bicep-params: ['file.bicepparam'],
diff --git a/src/version.c b/src/version.c
index bfd90a13f..2e73a46d4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    390,
 /**/
     389,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1wFwhm-00HQd1-8I%40256bit.org.

Raspunde prin e-mail lui