diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-14 17:58:53 -0400 |
---|---|---|
committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2020-06-18 18:01:44 -0400 |
commit | 954aed886ec2416e810c534fbd95818c99cdb71e (patch) | |
tree | b43e2c8b48ddbbd0dd98e52fb6d5c558fdf06118 | |
parent | e681a317fef46236f051be4adcc76ffd53ffcb40 (diff) | |
download | rneovim-954aed886ec2416e810c534fbd95818c99cdb71e.tar.gz rneovim-954aed886ec2416e810c534fbd95818c99cdb71e.tar.bz2 rneovim-954aed886ec2416e810c534fbd95818c99cdb71e.zip |
vim-patch:8.2.0980: raku file extension not recognized
Problem: Raku file extension not recognized. (Steven Penny)
Solution: Recognize .raku and .rakumod. (closes vim/vim#6255)
https://github.com/vim/vim/commit/a65d8b5bb9e9267c6e4500c67d26c839a64f30eb
-rw-r--r-- | runtime/filetype.vim | 1 | ||||
-rw-r--r-- | src/nvim/testdir/test_filetype.vim | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 2ba80a7d3b..f24352323d 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1162,6 +1162,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/nvim/testdir/test_filetype.vim b/src/nvim/testdir/test_filetype.vim index 3feb65e08a..442f4a3c26 100644 --- a/src/nvim/testdir/test_filetype.vim +++ b/src/nvim/testdir/test_filetype.vim @@ -329,7 +329,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'], |