Marius Gedminas wrote:
> On Thu, May 07, 2020 at 06:52:00PM +0200, Bram Moolenaar wrote: > > Patch 8.2.0713 > > Problem: The pam_environment file is not recognized. > > Solution: Add a filetype pattern for pamenv. (closes #6051) > > Files: runtime/filetype.vim, src/testdir/test_filetype.vim > > > > > > *** ../vim-8.2.0712/runtime/filetype.vim 2020-04-29 23:01:46.317364426 > > +0200 > > --- runtime/filetype.vim 2020-05-07 18:49:36.470272234 +0200 > > *************** > > *** 1133,1138 **** > > --- 1133,1141 ---- > > " Pam conf > > au BufNewFile,BufRead */etc/pam.conf setf pamconf > > > > + " Pam environment > > + au BufNewFile,BufRead .pam_environment setf pamenv > > + > > I see no pamenv.vim in runtime/syntax/ or in runtime/filetype/ in > current git master. Right, but the filetype detection works, thus if someone drops a syntax file in their own runtime directory it works. I assume we'll get a file to include in the distrubution some day. Generally, it's fine to detect more file types than we have runtime files for. The other way around doesn't make much sense. > Also, /etc/environment and /etc/default/locale use the same format and > could be added to the pattern. > > (While at it, /etc/pam.d/*.conf could be added to the pamconf pattern above.) Can you suggest a patch? -- I got a new desk stapler. It broke on the first desk I tried. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/202005081134.048BY5LD010766%40masaka.moolenaar.net.
