mirror of
https://github.com/macvim-dev/macvim.git
synced 2026-06-11 15:37:29 +02:00
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:
committed by
Christian Brabandt
parent
44f707da6a
commit
521eac1877
Vendored
+2
-1
@@ -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",
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -729,6 +729,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
390,
|
||||
/**/
|
||||
389,
|
||||
/**/
|
||||
|
||||
Reference in New Issue
Block a user