mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-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: vim/vim#14440
fc21b6437c
Co-authored-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
parent
bef4ad6507
commit
2857cde070
@ -1474,6 +1474,7 @@ local filename = {
|
|||||||
['.pythonrc'] = 'python',
|
['.pythonrc'] = 'python',
|
||||||
SConstruct = 'python',
|
SConstruct = 'python',
|
||||||
qmldir = 'qmldir',
|
qmldir = 'qmldir',
|
||||||
|
['.Rhistory'] = 'r',
|
||||||
['.Rprofile'] = 'r',
|
['.Rprofile'] = 'r',
|
||||||
Rprofile = 'r',
|
Rprofile = 'r',
|
||||||
['Rprofile.site'] = 'r',
|
['Rprofile.site'] = 'r',
|
||||||
|
@ -541,7 +541,7 @@ func s:GetFilenameChecks() abort
|
|||||||
\ 'qmldir': ['qmldir'],
|
\ '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'],
|
\ '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'],
|
\ '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'],
|
\ 'racket': ['file.rkt', 'file.rktd', 'file.rktl'],
|
||||||
\ 'radiance': ['file.rad', 'file.mat'],
|
\ 'radiance': ['file.rad', 'file.mat'],
|
||||||
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
|
\ 'raku': ['file.pm6', 'file.p6', 'file.t6', 'file.pod6', 'file.raku', 'file.rakumod', 'file.rakudoc', 'file.rakutest'],
|
||||||
|
Loading…
Reference in New Issue
Block a user