diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2026-04-24 07:50:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-24 07:50:31 +0800 |
| commit | c0e358f7e8ac92dbaba771a74d17d1754e3c6320 (patch) | |
| tree | 9f3e54aa83ebde67316c21ce664789443f6777ca | |
| parent | c39be1713153ddb83843cc431bc56ef24558a3f9 (diff) | |
vim-patch:9.2.0390: filetype: some Beancount files are not recognized (#39360)
Problem: filetype: some Beancount files are not recognized
Solution: Detect *.bean files as beancount filetype
(Bruno Belanyi)
closes: vim/vim#20037
https://github.com/vim/vim/commit/521eac1877355d408c8c57bc31947cc86f31f41d
Co-authored-by: Bruno Belanyi <bruno@belanyi.fr>
| -rw-r--r-- | runtime/lua/vim/filetype.lua | 1 | ||||
| -rw-r--r-- | test/old/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua index c1edd148b5..01824fe74c 100644 --- a/runtime/lua/vim/filetype.lua +++ b/runtime/lua/vim/filetype.lua @@ -290,6 +290,7 @@ local extension = { bm = detect.bas, bc = 'bc', bdf = 'bdf', + bean = 'beancount', beancount = 'beancount', bib = 'bib', com = detect_seq(detect.bindzone, 'dcl'), diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim index d11ec3fbb0..f42a5e9510 100644 --- a/test/old/testdir/test_filetype.vim +++ b/test/old/testdir/test_filetype.vim @@ -139,7 +139,7 @@ func s:GetFilenameChecks() abort \ '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'], |
