mirror of
https://github.com/neovim/neovim.git
synced 2026-04-19 22:10:45 +00:00
vim-patch:9.0.0752: Rprofile files are not recognized (#20658)
Problem: Rprofile files are not recognized.
Solution: Recognize Rprofile files as "r". (closes vim/vim#11369)
7e120ffccb
This commit is contained in:
@@ -1629,6 +1629,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
|
||||
|
||||
|
||||
@@ -1540,6 +1540,9 @@ local filename = {
|
||||
['.pythonstartup'] = 'python',
|
||||
['.pythonrc'] = 'python',
|
||||
SConstruct = 'python',
|
||||
['.Rprofile'] = 'r',
|
||||
['Rprofile'] = 'r',
|
||||
['Rprofile.site'] = 'r',
|
||||
ratpoisonrc = 'ratpoison',
|
||||
['.ratpoisonrc'] = 'ratpoison',
|
||||
inputrc = 'readline',
|
||||
|
||||
@@ -454,7 +454,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'],
|
||||
|
||||
Reference in New Issue
Block a user