patch 9.2.0390: filetype: some Beancount files are not recognized
Commit:
https://github.com/vim/vim/commit/521eac1877355d408c8c57bc31947cc86f31f41d
Author: Bruno Belanyi <
br...@belanyi.fr>
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 <
br...@belanyi.fr>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
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 <
Br...@vim.org>
# 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,
/**/