From: ObserverOfTime Date: Mon, 12 Sep 2022 11:43:23 +0000 (+0100) Subject: patch 9.0.0448: SubRip files are not recognized X-Git-Tag: v9.0.0448 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a4eb55122e45444d3a6c56ce108ce29bc8e52ab;p=vim patch 9.0.0448: SubRip files are not recognized Problem: SubRip files are not recognized. Solution: Add a pattern for SubRip. (closes #11113) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index deca7dc71..a27c3c71c 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1723,6 +1723,9 @@ au BufNewFile,BufRead *.sdl,*.pr setf sdl " sed au BufNewFile,BufRead *.sed setf sed +" SubRip +au BufNewFile,BufRead *.srt setf srt + " svelte au BufNewFile,BufRead *.svelte setf svelte diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index b8fccb2b8..62867e3f3 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -531,6 +531,7 @@ let s:filename_checks = { \ 'squid': ['squid.conf'], \ 'squirrel': ['file.nut'], \ 'srec': ['file.s19', 'file.s28', 'file.s37', 'file.mot', 'file.srec'], + \ 'srt': ['file.srt'], \ 'sshconfig': ['ssh_config', '/.ssh/config', '/etc/ssh/ssh_config.d/file.conf', 'any/etc/ssh/ssh_config.d/file.conf', 'any/.ssh/config', 'any/.ssh/file.conf'], \ 'sshdconfig': ['sshd_config', '/etc/ssh/sshd_config.d/file.conf', 'any/etc/ssh/sshd_config.d/file.conf'], \ 'st': ['file.st'], diff --git a/src/version.c b/src/version.c index da11368ed..2764ad9ad 100644 --- a/src/version.c +++ b/src/version.c @@ -703,6 +703,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 448, /**/ 447, /**/