Skip to content

Commit

Permalink
patch 8.2.4352: ReScript files are not recognized
Browse files Browse the repository at this point in the history
Problem:    ReScript files are not recognized.
Solution:   Add the *.res and *.resi patterns. (Ananda Umamil, closes #9752)
  • Loading branch information
zweimach authored and brammool committed Feb 12, 2022
1 parent 41ee5b1 commit 0c3cc2f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions runtime/filetype.vim
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions src/testdir/test_filetype.vim
Expand Up @@ -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'],
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -746,6 +746,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4352,
/**/
4351,
/**/
Expand Down

0 comments on commit 0c3cc2f

Please sign in to comment.