To: vim_dev@googlegroups.com Subject: Patch 8.2.3464 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.3464 Problem: nginx files are not recognized. Solution: Add several file patterns. (Chris Aumann, closes #8922) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.3463/runtime/filetype.vim 2021-09-26 21:55:57.720529413 +0100 --- runtime/filetype.vim 2021-10-03 11:39:11.786276829 +0100 *************** *** 1143,1148 **** --- 1143,1151 ---- " Netrc au BufNewFile,BufRead .netrc setf netrc + " Nginx + au BufNewFile,BufRead *.nginx,nginx*.conf,*nginx.conf,*/etc/nginx/*,*/usr/local/nginx/conf/*,*/nginx/*.conf setf nginx + " Ninja file au BufNewFile,BufRead *.ninja setf ninja *** ../vim-8.2.3463/src/testdir/test_filetype.vim 2021-09-26 21:55:57.720529413 +0100 --- src/testdir/test_filetype.vim 2021-10-03 11:42:35.474858371 +0100 *************** *** 345,350 **** --- 345,351 ---- \ 'nanorc': ['/etc/nanorc', 'file.nanorc', 'any/etc/nanorc'], \ 'ncf': ['file.ncf'], \ 'netrc': ['.netrc'], + \ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'], \ 'ninja': ['file.ninja'], \ 'nqc': ['file.nqc'], \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'], *** ../vim-8.2.3463/src/version.c 2021-10-02 21:48:08.639938510 +0100 --- src/version.c 2021-10-03 11:43:10.731651508 +0100 *************** *** 759,760 **** --- 759,762 ---- { /* Add new patch number below this line */ + /**/ + 3464, /**/ -- From "know your smileys": :'-D Laughing so much that they're crying /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// \\\ \\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///