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 <bruno@belanyi.fr>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Bruno Belanyi
2026-04-23 15:56:30 +00:00
committed by Christian Brabandt
parent 44f707da6a
commit 521eac1877
3 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -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 <Bram@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",
+1 -1
View File
@@ -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'],
+2
View File
@@ -729,6 +729,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
390,
/**/
389,
/**/