]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.4352: ReScript files are not recognized v8.2.4352
authorAnanda Umamil <zweimach@zweimach.org>
Sat, 12 Feb 2022 10:33:56 +0000 (10:33 +0000)
committerBram Moolenaar <Bram@vim.org>
Sat, 12 Feb 2022 10:33:56 +0000 (10:33 +0000)
Problem:    ReScript files are not recognized.
Solution:   Add the *.res and *.resi patterns. (Ananda Umamil, closes #9752)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 37126ad9550ba9e699c7a01cd5bf7f44620e24e5..fe1f12cb06b16e24a2cac9fcf14859c209875309 100644 (file)
@@ -1547,6 +1547,9 @@ au BufNewFile,BufRead *.r,*.R                             call dist#ft#FTr()
 " Remind
 au BufNewFile,BufRead .reminders,*.remind,*.rem                setf remind
 
+" ReScript
+au BufNewFile,BufRead *.res,*.resi                     setf rescript
+
 " Resolv.conf
 au BufNewFile,BufRead resolv.conf              setf resolv
 
index 13a494b963c30bf2bcfb08c1da26c54c3392a30f..9d120705637c5145d3a15711a50df16fb5d2d1af 100644 (file)
@@ -436,6 +436,7 @@ let s:filename_checks = {
     \ 'readline': ['.inputrc', 'inputrc'],
     \ 'remind': ['.reminders', 'file.remind', 'file.rem', '.reminders-file'],
     \ 'rego': ['file.rego'],
+    \ 'rescript': ['file.res', 'file.resi'],
     \ 'resolv': ['resolv.conf'],
     \ 'reva': ['file.frt'],
     \ 'rexx': ['file.rex', 'file.orx', 'file.rxo', 'file.rxj', 'file.jrexx', 'file.rexxj', 'file.rexx', 'file.testGroup', 'file.testUnit'],
index 8b8d6dc42cd444c157e5e35a4dabb6c5bd89c82e..7c72e8ff963664ec55ccc4e2ef59c2833bfa33a7 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4352,
 /**/
     4351,
 /**/