]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0600: GYP files are not recognized v9.0.0600
authorObserverOfTime <chronobserver@disroot.org>
Tue, 27 Sep 2022 10:35:09 +0000 (11:35 +0100)
committerBram Moolenaar <Bram@vim.org>
Tue, 27 Sep 2022 10:35:09 +0000 (11:35 +0100)
Problem:    GYP files are not recognized.
Solution:   Recognize GYP files. (closes #11242)

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

index c301b0e5bc4f895315c686a80981e0e5a3b9ee49..a5ac8126268a3b73dd3c7d54d76c51f09181f7d4 100644 (file)
@@ -802,6 +802,9 @@ au BufNewFile,BufRead */etc/group,*/etc/group-,*/etc/group.edit,*/etc/gshadow,*/
 " GTK RC
 au BufNewFile,BufRead .gtkrc,gtkrc             setf gtkrc
 
+" GYP
+au BufNewFile,BufRead *.gyp,*.gypi             setf gyp
+
 " Hack
 au BufRead,BufNewFile *.hack,*.hackpartial                     setf hack
 
index 43f96647a99090b134f388f1fcee678b7829e8b5..ad77df357c03776bcc3ed702a2303e76428e1ddd 100644 (file)
@@ -240,6 +240,7 @@ let s:filename_checks = {
     \ 'grub': ['/boot/grub/menu.lst', '/boot/grub/grub.conf', '/etc/grub.conf', 'any/boot/grub/grub.conf', 'any/boot/grub/menu.lst', 'any/etc/grub.conf'],
     \ 'gsp': ['file.gsp'],
     \ 'gtkrc': ['.gtkrc', 'gtkrc', '.gtkrc-file', 'gtkrc-file'],
+    \ 'gyp': ['file.gyp', 'file.gypi'],
     \ 'hack': ['file.hack', 'file.hackpartial'],
     \ 'haml': ['file.haml'],
     \ 'hamster': ['file.hsm'],
index bfc057b8f46a2a86b8d507388e9dc9275fcf46ca..d0e14a203e1a53baf8b9002f298e1b652efc3bdf 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    600,
 /**/
     599,
 /**/