vim-patch:8.2.2625: rss files not recognized

Problem:    Rss files not recognized.
Solution:   Recognize .rss as XML. (Kivin Locke, closes vim/vim#7987)
af125866db
This commit is contained in:
Jan Edmund Lazo
2021-03-20 22:16:58 -04:00
parent 429c6d2d4f
commit 0bf9f10da0
2 changed files with 4 additions and 1 deletions

View File

@@ -1400,6 +1400,9 @@ else
au BufNewFile,BufRead *.rmd,*.smd setf rmd au BufNewFile,BufRead *.rmd,*.smd setf rmd
endif endif
" RSS looks like XML
au BufNewFile,BufRead *.rss setf xml
" R reStructuredText file " R reStructuredText file
if has("fname_case") if has("fname_case")
au BufNewFile,BufRead *.Rrst,*.rrst,*.Srst,*.srst setf rrst au BufNewFile,BufRead *.Rrst,*.rrst,*.Srst,*.srst setf rrst

View File

@@ -521,7 +521,7 @@ let s:filename_checks = {
\ 'xhtml': ['file.xhtml', 'file.xht'], \ 'xhtml': ['file.xhtml', 'file.xht'],
\ 'xinetd': ['/etc/xinetd.conf'], \ 'xinetd': ['/etc/xinetd.conf'],
\ 'xmath': ['file.msc', 'file.msf'], \ 'xmath': ['file.msc', 'file.msf'],
\ 'xml': ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 'file.csproj.user', 'file.ui', 'file.tpm', '/etc/xdg/menus/file.menu', 'fglrxrc', 'file.xlf', 'file.xliff', 'file.xul', 'file.wsdl', 'file.wpl', 'any/etc/blkid.tab', 'any/etc/blkid.tab.old', 'any/etc/xdg/menus/file.menu', 'file.atom'], \ 'xml': ['/etc/blkid.tab', '/etc/blkid.tab.old', 'file.xmi', 'file.csproj', 'file.csproj.user', 'file.ui', 'file.tpm', '/etc/xdg/menus/file.menu', 'fglrxrc', 'file.xlf', 'file.xliff', 'file.xul', 'file.wsdl', 'file.wpl', 'any/etc/blkid.tab', 'any/etc/blkid.tab.old', 'any/etc/xdg/menus/file.menu', 'file.atom', 'file.rss'],
\ 'xmodmap': ['anyXmodmap'], \ 'xmodmap': ['anyXmodmap'],
\ 'xf86conf': ['xorg.conf', 'xorg.conf-4'], \ 'xf86conf': ['xorg.conf', 'xorg.conf-4'],
\ 'xpm2': ['file.xpm2'], \ 'xpm2': ['file.xpm2'],