]> granicus.if.org Git - vim/commitdiff
patch 9.0.1288: FunC files are not recognized v9.0.1288
authorAmaan Qureshi <amaanq12@gmail.com>
Mon, 6 Feb 2023 19:32:07 +0000 (19:32 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Feb 2023 19:32:07 +0000 (19:32 +0000)
Problem:    FunC files are not recognized.
Solution:   Recognize FunC files. (Amaan Qureshi, closes #11949)

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

index c0c87ff177c4cd993bbb07a4f49bbb78c973af77..f2a6c4241eaffb470cb23eb0e8816a3675f9ab9e 100644 (file)
@@ -706,6 +706,9 @@ au BufNewFile,BufRead *.fsl                 setf framescript
 " FStab
 au BufNewFile,BufRead fstab,mtab               setf fstab
 
+" Func
+au BufNewFile,BufRead *.fc                     setf func
+
 " Fusion
 au BufRead,BufNewFile *.fusion                 setf fusion
 
index ed4a86337e6f6889063774d31d7b17786f8a0626..f5c54f5712641364836d4b7da50ba9ffa12b6f06 100644 (file)
@@ -209,6 +209,7 @@ let s:filename_checks = {
     \ 'fsh': ['file.fsh'],
     \ 'fsharp': ['file.fs', 'file.fsi', 'file.fsx'],
     \ 'fstab': ['fstab', 'mtab'],
+    \ 'func': ['file.fc'],
     \ 'fusion': ['file.fusion'],
     \ 'fvwm': ['/.fvwm/file', 'any/.fvwm/file'],
     \ 'gdb': ['.gdbinit', 'gdbinit', 'file.gdb', '.config/gdbearlyinit', '.gdbearlyinit'],
index 9d5cb0fbaefc5ec2b96416ff3e08268c245a9b99..46ad75c7b8cd3b40dbc45fda525b393db21d9006 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1288,
 /**/
     1287,
 /**/