mirror of
https://github.com/vim/vim.git
synced 2025-09-28 04:24:06 -04:00
patch 9.1.0275: filetype: R history files are not recognized
Problem: filetype: R history files are not recognized Solution: Detect '.Rhistory' files as r filetype (Wu, Zhenyu) closes: #14440 Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
aca8f55596
commit
fc21b6437c
@@ -1841,7 +1841,7 @@ else
|
||||
endif
|
||||
|
||||
" R profile file
|
||||
au BufNewFile,BufRead .Rprofile,Rprofile,Rprofile.site setf r
|
||||
au BufNewFile,BufRead .Rhistory,.Rprofile,Rprofile,Rprofile.site setf r
|
||||
|
||||
" RSS looks like XML
|
||||
au BufNewFile,BufRead *.rss setf xml
|
||||
|
@@ -570,7 +570,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
qmldir: ['qmldir'],
|
||||
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', '.Rprofile', 'Rprofile', 'Rprofile.site'],
|
||||
r: ['file.r', '.Rhistory', '.Rprofile', 'Rprofile', 'Rprofile.site'],
|
||||
racket: ['file.rkt', 'file.rktd', 'file.rktl'],
|
||||
radiance: ['file.rad', 'file.mat'],
|
||||
raku: ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
275,
|
||||
/**/
|
||||
274,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user