vim-patch:8.2.4352: ReScript files are not recognized

Problem:    ReScript files are not recognized.
Solution:   Add the *.res and *.resi patterns. (Ananda Umamil, closes vim/vim#9752)
0c3cc2fec3
This commit is contained in:
Christian Clason 2022-02-12 12:03:02 +01:00
parent a7321e37a7
commit 3b13c7fc8b
3 changed files with 6 additions and 0 deletions

View File

@ -1543,6 +1543,9 @@ au BufNewFile,BufRead *.r,*.R call dist#ft#FTr()
" Remind " Remind
au BufNewFile,BufRead .reminders,*.remind,*.rem setf remind au BufNewFile,BufRead .reminders,*.remind,*.rem setf remind
" ReScript
au BufNewFile,BufRead *.res,*.resi setf rescript
" Resolv.conf " Resolv.conf
au BufNewFile,BufRead resolv.conf setf resolv au BufNewFile,BufRead resolv.conf setf resolv

View File

@ -514,6 +514,8 @@ local extension = {
rego = "rego", rego = "rego",
rem = "remind", rem = "remind",
remind = "remind", remind = "remind",
res = "rescript",
resi = "rescript",
frt = "reva", frt = "reva",
testUnit = "rexx", testUnit = "rexx",
rex = "rexx", rex = "rexx",

View File

@ -435,6 +435,7 @@ let s:filename_checks = {
\ 'readline': ['.inputrc', 'inputrc'], \ 'readline': ['.inputrc', 'inputrc'],
\ 'remind': ['.reminders', 'file.remind', 'file.rem', '.reminders-file'], \ 'remind': ['.reminders', 'file.remind', 'file.rem', '.reminders-file'],
\ 'rego': ['file.rego'], \ 'rego': ['file.rego'],
\ 'rescript': ['file.res', 'file.resi'],
\ 'resolv': ['resolv.conf'], \ 'resolv': ['resolv.conf'],
\ 'reva': ['file.frt'], \ 'reva': ['file.frt'],
\ 'rexx': ['file.rex', 'file.orx', 'file.rxo', 'file.rxj', 'file.jrexx', 'file.rexxj', 'file.rexx', 'file.testGroup', 'file.testUnit'], \ 'rexx': ['file.rex', 'file.orx', 'file.rxo', 'file.rxj', 'file.jrexx', 'file.rexxj', 'file.rexx', 'file.testGroup', 'file.testUnit'],