# HG changeset patch # User Bram Moolenaar # Date 1592158503 -7200 # Node ID ed923c9d99486933970129acfeed2fc07bf36399 # Parent 83cfa1ef1bf27bcd29735572ab5151dfb7b98954 patch 8.2.0980: raku file extension not recognized Commit: https://github.com/vim/vim/commit/a65d8b5bb9e9267c6e4500c67d26c839a64f30eb Author: Bram Moolenaar Date: Sun Jun 14 20:04:32 2020 +0200 patch 8.2.0980: raku file extension not recognized Problem: Raku file extension not recognized. (Steven Penny) Solution: Recognize .raku and .rakumod. (closes https://github.com/vim/vim/issues/6255) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1166,6 +1166,7 @@ else 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 diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -330,7 +330,7 @@ let s:filename_checks = { \ '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'], + \ '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'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -755,6 +755,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 980, +/**/ 979, /**/ 978,