To: vim_dev@googlegroups.com Subject: Patch 8.2.2788 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ------------ Patch 8.2.2788 Problem: Raku is now the only name what once was called perl6. Solution: Adjust the filetype detection. (closes #8120) Files: runtime/filetype.vim, src/testdir/test_filetype.vim *** ../vim-8.2.2787/runtime/filetype.vim 2021-04-17 14:06:36.014598855 +0200 --- runtime/filetype.vim 2021-04-20 20:16:21.388797005 +0200 *************** *** 1208,1215 **** au BufNewFile,BufRead *.pl call dist#ft#FTpl() endif au BufNewFile,BufRead *.plx,*.al,*.psgi setf perl - au BufNewFile,BufRead *.p6,*.pm6,*.pl6 setf perl6 - au BufNewFile,BufRead *.raku,*.rakumod setf perl6 " Perl, XPM or XPM2 au BufNewFile,BufRead *.pm --- 1208,1213 ---- *************** *** 1223,1229 **** " Perl POD au BufNewFile,BufRead *.pod setf pod - au BufNewFile,BufRead *.pod6 setf pod6 " Php, php3, php4, etc. " Also Phtml (was used for PHP 2 in the past) --- 1221,1226 ---- *************** *** 1366,1371 **** --- 1363,1371 ---- " Radiance au BufNewFile,BufRead *.rad,*.mat setf radiance + " Raku (formelly Perl6) + au BufNewFile,BufRead *.pm6,*.p6,*.t6,*.pod6,*.raku,*.rakumod,*.rakudoc,*.rakutest setf raku + " Ratpoison config/command files au BufNewFile,BufRead .ratpoisonrc,ratpoisonrc setf ratpoison *** ../vim-8.2.2787/src/testdir/test_filetype.vim 2021-04-17 14:06:36.014598855 +0200 --- src/testdir/test_filetype.vim 2021-04-20 20:16:21.392796992 +0200 *************** *** 359,365 **** \ 'pccts': ['file.g'], \ 'pdf': ['file.pdf'], \ 'perl': ['file.plx', 'file.al', 'file.psgi', 'gitolite.rc', '.gitolite.rc', 'example.gitolite.rc'], - \ 'perl6': ['file.p6', 'file.pm6', 'file.pl6', 'file.raku', 'file.rakumod'], \ 'pf': ['pf.conf'], \ 'pfmain': ['main.cf'], \ 'php': ['file.php', 'file.php9', 'file.phtml', 'file.ctp'], --- 359,364 ---- *************** *** 375,381 **** \ 'plsql': ['file.pls', 'file.plsql'], \ 'po': ['file.po', 'file.pot'], \ 'pod': ['file.pod'], - \ 'pod6': ['file.pod6'], \ 'poke': ['file.pk'], \ 'postscr': ['file.ps', 'file.pfa', 'file.afm', 'file.eps', 'file.epsf', 'file.epsi', 'file.ai'], \ 'pov': ['file.pov'], --- 374,379 ---- *************** *** 398,403 **** --- 396,402 ---- \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'], \ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'], \ 'radiance': ['file.rad', 'file.mat'], + \ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'], \ 'ratpoison': ['.ratpoisonrc', 'ratpoisonrc'], \ 'rbs': ['file.rbs'], \ 'rc': ['file.rc', 'file.rch'], *************** *** 624,630 **** \ ['#!/path/pike0'], \ ['#!/path/pike9']], \ 'lua': [['#!/path/lua']], ! \ 'perl6': [['#!/path/perl6']], \ 'perl': [['#!/path/perl']], \ 'php': [['#!/path/php']], \ 'python': [['#!/path/python'], --- 623,629 ---- \ ['#!/path/pike0'], \ ['#!/path/pike9']], \ 'lua': [['#!/path/lua']], ! \ 'raku': [['#!/path/raku']], \ 'perl': [['#!/path/perl']], \ 'php': [['#!/path/php']], \ 'python': [['#!/path/python'], *** ../vim-8.2.2787/src/version.c 2021-04-20 10:33:24.629417153 +0200 --- src/version.c 2021-04-20 20:17:39.100553486 +0200 *************** *** 752,753 **** --- 752,755 ---- { /* Add new patch number below this line */ + /**/ + 2788, /**/ -- hundred-and-one symptoms of being an internet addict: 130. You can't get out of your desk even if it's time to eat or time to go to the bathroom. /// 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 ///