]> granicus.if.org Git - vim/commitdiff
patch 9.0.1337: yuck files are not recognized v9.0.1337
authorAmaan Qureshi <amaanq12@gmail.com>
Tue, 21 Feb 2023 15:18:50 +0000 (15:18 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Feb 2023 15:18:50 +0000 (15:18 +0000)
Problem:    Yuck files are not recognized.
Solution:   Add a filetype pattern for yuck files. (Amaan Qureshi,
            closes #12033)

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

index be92fb8fcfb5605d5c35eab179b86291b9d0c980..a2bf03a6fdc58af99b9154b4f59b018ae36d933f 100644 (file)
@@ -2441,6 +2441,9 @@ au BufNewFile,BufRead */etc/yum.conf              setf dosini
 " YANG
 au BufRead,BufNewFile *.yang                   setf yang
 
+" Yuck
+au BufNewFile,BufRead *.yuck                   setf yuck
+
 " Zimbu
 au BufNewFile,BufRead *.zu                     setf zimbu
 " Zimbu Templates
index 8e88fa55e7fcd961ad61a89979265a3438b9602e..ed5f43e708c398be71a7f144bf8a2da53aeb5b2d 100644 (file)
@@ -664,6 +664,7 @@ let s:filename_checks = {
     \ 'yacc': ['file.yy', 'file.yxx', 'file.y++'],
     \ 'yaml': ['file.yaml', 'file.yml', '.clangd', '.clang-format', '.clang-tidy'],
     \ 'yang': ['file.yang'],
+    \ 'yuck': ['file.yuck'],
     \ 'z8a': ['file.z8a'],
     \ 'zig': ['file.zig'],
     \ 'zimbu': ['file.zu'],
index fd8e887021bae55dcf01b112a965f45f44d6a741..a665a2acf0811d95a9441136f6fa1385c53496cc 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1337,
 /**/
     1336,
 /**/