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 -- [email protected] -- http://www.Moolenaar.net   \\\
///                                                                      \\\
\\\        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
 \\\            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/202104151230.13FCUSk1056177%40masaka.moolenaar.net.

Raspunde prin e-mail lui