]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1587: Corn config files are not recognized v9.0.1587
authorJake Stanger <mail@jstanger.dev>
Sun, 28 May 2023 21:11:21 +0000 (22:11 +0100)
committerBram Moolenaar <Bram@vim.org>
Sun, 28 May 2023 21:11:21 +0000 (22:11 +0100)
Problem:    Corn config files are not recognized.
Solution:   Add a pattern for Corn config files. (Jake Stanger, closes #12449)

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

index c0b914d3a8334f4d1dbcc48cace7667126590d9e..4be0f18a7d310ca60c68ddc0712062268ed6c58e 100644 (file)
@@ -319,6 +319,9 @@ au BufNewFile,BufRead *.cdl                 setf cdl
 " Conary Recipe
 au BufNewFile,BufRead *.recipe                 setf conaryrecipe
 
+" Corn config file
+au BufNewFile,BufRead *.corn                   setf corn
+
 " ChainPack Object Notation (CPON)
 au BufNewFile,BufRead *.cpon                   setf cpon
 
index c2b4cc790e2892ba210ac1834a6355d03f340a88..9375883e38d15aaa244a94758ad52bacab4d66ef 100644 (file)
@@ -126,6 +126,7 @@ let s:filename_checks = {
     \ 'confini': ['/etc/pacman.conf', 'any/etc/pacman.conf', 'mpv.conf', 'any/.aws/config', 'any/.aws/credentials', 'file.nmconnection'],
     \ 'context': ['tex/context/any/file.tex', 'file.mkii', 'file.mkiv', 'file.mkvi', 'file.mkxl', 'file.mklx'],
     \ 'cook': ['file.cook'],
+    \ 'corn': ['file.corn'],
     \ 'cpon': ['file.cpon'],
     \ 'cpp': ['file.cxx', 'file.c++', 'file.hh', 'file.hxx', 'file.hpp', 'file.ipp', 'file.moc', 'file.tcc', 'file.inl', 'file.tlh', 'file.cppm', 'file.ccm', 'file.cxxm', 'file.c++m'],
     \ 'cqlang': ['file.cql'],
index fdb7716a989c1035509054d1da79d202b19d33aa..08c67bb7c6f40832c5353f8fee6de4cc8466cfb9 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1587,
 /**/
     1586,
 /**/