To: vim_dev@googlegroups.com Subject: Patch 8.2.2769 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2769 Problem: Modula-3 config files are not recognized. Solution: Add filetype patterns. (Doug Kearns) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.2768/runtime/filetype.vim 2021-04-05 13:09:45.082815203 +0200 --- runtime/filetype.vim 2021-04-15 14:25:59.569760184 +0200 *************** *** 417,422 **** --- 417,426 ---- " Lynx config files au BufNewFile,BufRead lynx.cfg setf lynx + " Modula-3 configuration language (must be before *.cfg and *makefile) + au BufNewFile,BufRead *.quake,cm3.cfg setf m3quake + au BufNewFile,BufRead m3makefile,m3overrides setf m3build + " Quake au BufNewFile,BufRead *baseq[2-3]/*.cfg,*id1/*.cfg setf quake au BufNewFile,BufRead *quake[1-3]/*.cfg setf quake *************** *** 1045,1054 **** \ setf modsim3 | \ endif ! " Modula 2 (.md removed in favor of Markdown) au BufNewFile,BufRead *.m2,*.DEF,*.MOD,*.mi setf modula2 ! " Modula 3 (.m3, .i3, .mg, .ig) au BufNewFile,BufRead *.[mi][3g] setf modula3 " Monk --- 1049,1058 ---- \ setf modsim3 | \ endif ! " Modula-2 (.md removed in favor of Markdown) au BufNewFile,BufRead *.m2,*.DEF,*.MOD,*.mi setf modula2 ! " Modula-3 (.m3, .i3, .mg, .ig) au BufNewFile,BufRead *.[mi][3g] setf modula3 " Monk *** ../vim-8.2.2768/src/testdir/test_filetype.vim 2021-04-05 13:09:45.082815203 +0200 --- src/testdir/test_filetype.vim 2021-04-15 14:17:39.223256306 +0200 *************** *** 290,295 **** --- 290,297 ---- \ 'lss': ['file.lss'], \ 'lua': ['file.lua', 'file.rockspec', 'file.nse'], \ 'lynx': ['lynx.cfg'], + \ 'm3build': ['m3makefile', 'm3overrides'], + \ 'm3quake': ['file.quake', 'cm3.cfg'], \ 'm4': ['file.at'], \ 'mail': ['snd.123', '.letter', '.letter.123', '.followup', '.article', '.article.123', 'pico.123', 'mutt-xx-xxx', 'muttng-xx-xxx', 'ae123.txt', 'file.eml', 'reportbug-file'], \ 'mailaliases': ['/etc/mail/aliases', '/etc/aliases', 'any/etc/aliases', 'any/etc/mail/aliases'], *** ../vim-8.2.2768/src/version.c 2021-04-15 13:42:15.914633807 +0200 --- src/version.c 2021-04-15 14:27:09.801553375 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2769, /**/ -- hundred-and-one symptoms of being an internet addict: 100. The most exciting sporting events you noticed during summer 1996 was Netscape vs. Microsoft. /// 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 ///