]> granicus.if.org Git - vim/commitdiff
patch 8.2.2522: Beancount filetype not recognized v8.2.2522
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Feb 2021 11:25:49 +0000 (12:25 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Feb 2021 11:25:49 +0000 (12:25 +0100)
Problem:    Beancount filetype not recognized.
Solution:   Add a detection rule. (Brian Ryall, closes #7859)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index e4910e37193b2e1d14c010e9ac806ad28b46271f..4faead9764b153fa2b1a74c8e93377b4332b7d52 100644 (file)
@@ -216,6 +216,9 @@ au BufNewFile,BufRead *.bc                  setf bc
 " BDF font
 au BufNewFile,BufRead *.bdf                    setf bdf
 
+" Beancount
+au BufNewFile,BufRead *.beancount              setf beancount
+
 " BibTeX bibliography database file
 au BufNewFile,BufRead *.bib                    setf bib
 
index 4104ec2b327711fd64ae43dde718c9193ed4d96e..06b8e997c70b076d45c7d030fa053887ddac9e74 100644 (file)
@@ -79,6 +79,7 @@ let s:filename_checks = {
     \ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE'],
     \ 'bc': ['file.bc'],
     \ 'bdf': ['file.bdf'],
+    \ 'beancount': ['file.beancount'],
     \ 'bib': ['file.bib'],
     \ 'bindzone': ['named.root', '/bind/db.file', '/named/db.file', 'any/bind/db.file', 'any/named/db.file'],
     \ 'blank': ['file.bl'],
index 7323b8ff29a2ee38a0e1748b06b835516067d59c..304a7301fe507296492167cee76b6ed3754e2411 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2522,
 /**/
     2521,
 /**/