From 7e120ffccbf81ae8acac28f11fbd5eab79a1630d Mon Sep 17 00:00:00 2001 From: ObserverOfTime Date: Fri, 14 Oct 2022 20:24:24 +0100 Subject: [PATCH] patch 9.0.0752: Rprofile files are not recognized Problem: Rprofile files are not recognized. Solution: Recognize Rprofile files as "r". (closes #11369) --- runtime/filetype.vim | 3 +++ src/testdir/test_filetype.vim | 2 +- src/version.c | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index b4bcc8012..d36078223 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1628,6 +1628,9 @@ else au BufNewFile,BufRead *.rmd,*.smd setf rmd endif +" R profile file +au BufNewFile,BufRead .Rprofile,Rprofile,Rprofile.site setf r + " RSS looks like XML au BufNewFile,BufRead *.rss setf xml diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 17d846df8..0fb73b7df 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -453,7 +453,7 @@ let s:filename_checks = { \ 'ql': ['file.ql', 'file.qll'], \ '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'], \ 'quarto': ['file.qmd'], - \ 'r': ['file.r'], + \ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'], \ 'radiance': ['file.rad', 'file.mat'], \ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'], \ 'raml': ['file.raml'], diff --git a/src/version.c b/src/version.c index 34129a245..bedbdc045 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 752, /**/ 751, /**/ -- 2.40.0