]> granicus.if.org Git - vim/commitdiff
patch 8.2.2801: free Pascal makefile not recognized v8.2.2801
authorBram Moolenaar <Bram@vim.org>
Fri, 23 Apr 2021 16:06:48 +0000 (18:06 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 23 Apr 2021 16:06:48 +0000 (18:06 +0200)
Problem:    Free Pascal makefile not recognized.
Solution:   Add the fpcmake filetype. (Doug Kearns)

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

index 7364d3f2b9eb8d7993c728eda622f1fceeb08e9d..ec5a46d340845bc6c740c81972ea8d2c9dd62b1b 100644 (file)
@@ -1195,6 +1195,9 @@ au BufNewFile,BufRead *.pp                        call dist#ft#FTpp()
 " Delphi or Lazarus program file
 au BufNewFile,BufRead *.dpr,*.lpr              setf pascal
 
+" Free Pascal makefile definition file
+au BufNewFile,BufRead *.fpc                    setf fpcmake
+
 " PDF
 au BufNewFile,BufRead *.pdf                    setf pdf
 
index 20b416ff202b26d68145e383b1556648018f0f0a..ae90a0a818df8fb96148ceacd0c9ce060e4bb200 100644 (file)
@@ -182,6 +182,7 @@ let s:filename_checks = {
     \ 'focexec': ['file.fex', 'file.focexec'],
     \ 'forth': ['file.fs', 'file.ft', 'file.fth'],
     \ 'fortran': ['file.f', 'file.for', 'file.fortran', 'file.fpp', 'file.ftn', 'file.f77', 'file.f90', 'file.f95', 'file.f03', 'file.f08'],
+    \ 'fpcmake': ['file.fpc'],
     \ 'framescript': ['file.fsl'],
     \ 'freebasic': ['file.fb', 'file.bi'],
     \ 'fstab': ['fstab', 'mtab'],
index ebe5268797aaf0fb359688f23bfa9423b506405e..a345fc8c367258a1774504ab6e5e4a90f61f6cd0 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2801,
 /**/
     2800,
 /**/