patch 9.1.0591: filetype: *.wl files are not recognized Commit: https://github.com/vim/vim/commit/c6d7dc039342fbe1cf432c7f8e7e391063de210b Author: Jonas Dujava <jonas.duj...@gmail.com> Date: Tue Jul 16 20:37:41 2024 +0200
patch 9.1.0591: filetype: *.wl files are not recognized Problem: filetype: *.wl files are not recognized Solution: Detect '*.wl' files as Mathematica package files (Jonas Dujava) closes: #15269 Signed-off-by: Jonas Dujava <jonas.duj...@gmail.com> Signed-off-by: Doug Kearns <dougkea...@gmail.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 6ee417252..0cc0a62c9 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1418,8 +1418,8 @@ au BufNewFile,BufRead *.mason,*.mhtml,*.comp setf mason " Mathematica, Matlab, Murphi, Objective C or Octave au BufNewFile,BufRead *.m call dist#ft#FTm() -" Mathematica notebook -au BufNewFile,BufRead *.nb setf mma +" Mathematica notebook and package files +au BufNewFile,BufRead *.nb,*.wl setf mma " Maya Extension Language au BufNewFile,BufRead *.mel setf mel diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 5cace2e29..edb984968 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -471,7 +471,7 @@ def s:GetFilenameChecks(): dict<list<string>> mgp: ['file.mgp'], mib: ['file.mib', 'file.my'], mix: ['file.mix', 'file.mixal'], - mma: ['file.nb'], + mma: ['file.nb', 'file.wl'], mmp: ['file.mmp'], modconf: ['/etc/modules.conf', '/etc/modules', '/etc/conf.modules', '/etc/modprobe.file', 'any/etc/conf.modules', 'any/etc/modprobe.file', 'any/etc/modules', 'any/etc/modules.conf'], modula3: ['file.m3', 'file.mg', 'file.i3', 'file.ig', 'file.lm3'], diff --git a/src/version.c b/src/version.c index ae351cff9..b9d85a66b 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 591, /**/ 590, /**/ -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1sTxvJ-0091SW-Ch%40256bit.org.