]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0390: filetype: some Beancount files are not recognized v9.2.0390
authorBruno Belanyi <bruno@belanyi.fr>
Thu, 23 Apr 2026 15:56:30 +0000 (15:56 +0000)
committerChristian Brabandt <cb@256bit.org>
Thu, 23 Apr 2026 15:56:30 +0000 (15:56 +0000)
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>
runtime/autoload/dist/ft.vim
src/testdir/test_filetype.vim
src/version.c

index 7b7fb2954da57355638cb3e3aa9667d5dcf5c8e4..761ff644cd98333cccde92e2cab2dd6d7cb1b1f4 100644 (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",
index 583dad4d1c1915c97f602ed2d65f5f396f0a6e2a..5040ac0e61b91546a7f02fe10316f1ed6ad0e7d3 100644 (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'],
index bfd90a13fcfca9f90870c00305d65ac74f11cb3e..2e73a46d4fefc4db4d01ff27976f75f5bf8a27bf 100644 (file)
@@ -729,6 +729,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    390,
 /**/
     389,
 /**/