]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0980: raku file extension not recognized v8.2.0980
authorBram Moolenaar <Bram@vim.org>
Sun, 14 Jun 2020 18:04:32 +0000 (20:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 14 Jun 2020 18:04:32 +0000 (20:04 +0200)
Problem:    Raku file extension not recognized. (Steven Penny)
Solution:   Recognize .raku and .rakumod. (closes #6255)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index c585515b0e4caa8b089b108e99a114d3c6465525..cc3c01fbdca7b4294f79ac55b542577d0cdfe17e 100644 (file)
@@ -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
index dca25125be781ee25d4553b5e3ff05fd9cd0f327..331260d34371f46b755ffe365a9cd5575a2182f6 100644 (file)
@@ -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'],
index 3ac374f8fc628c810c5d4e0142882510120312d0..eabdafc5f25f94d181a2a1982cb4e396d0f39b3e 100644 (file)
@@ -754,6 +754,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    980,
 /**/
     979,
 /**/