Skip to content

Commit 9bbd883

Browse files
committed
patch 8.2.2522: Beancount filetype not recognized
Problem: Beancount filetype not recognized. Solution: Add a detection rule. (Brian Ryall, closes #7859)
1 parent 333bd56 commit 9bbd883

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

runtime/filetype.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,9 @@ au BufNewFile,BufRead *.bc setf bc
216216
" BDF font
217217
au BufNewFile,BufRead *.bdf setf bdf
218218

219+
" Beancount
220+
au BufNewFile,BufRead *.beancount setf beancount
221+
219222
" BibTeX bibliography database file
220223
au BufNewFile,BufRead *.bib setf bib
221224

src/testdir/test_filetype.vim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ let s:filename_checks = {
7979
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],
8080
\ 'bc': ['file.bc'],
8181
\ 'bdf': ['file.bdf'],
82+
\ 'beancount': ['file.beancount'],
8283
\ 'bib': ['file.bib'],
8384
\ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
8485
\ 'blank': ['file.bl'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2522,
753755
/**/
754756
2521,
755757
/**/

0 commit comments

Comments
 (0)