From: Bruno Belanyi Date: Thu, 23 Apr 2026 15:56:30 +0000 (+0000) Subject: patch 9.2.0390: filetype: some Beancount files are not recognized X-Git-Tag: v9.2.0390^0 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=521eac1877355d408c8c57bc31947cc86f31f41d;p=thirdparty%2Fvim.git 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 Signed-off-by: Christian Brabandt --- diff --git a/runtime/autoload/dist/ft.vim b/runtime/autoload/dist/ft.vim index 7b7fb2954d..761ff644cd 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 -# Last Change: 2026 Apr 20 +# Last Change: 2026 Apr 23 # Former Maintainer: Bram Moolenaar # 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 583dad4d1c..5040ac0e61 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -138,7 +138,7 @@ def s:GetFilenameChecks(): dict> 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 bfd90a13fc..2e73a46d4f 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, /**/