]> granicus.if.org Git - vim/commitdiff
patch 9.0.0448: SubRip files are not recognized v9.0.0448
authorObserverOfTime <chronobserver@disroot.org>
Mon, 12 Sep 2022 11:43:23 +0000 (12:43 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 12 Sep 2022 11:43:23 +0000 (12:43 +0100)
Problem:    SubRip files are not recognized.
Solution:   Add a pattern for SubRip. (closes #11113)

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

index deca7dc71a4cdaf6c8918c454bee8c257ebb10fa..a27c3c71cbad637cf2efca6130d5c3ec5a0c6db5 100644 (file)
@@ -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
 
index b8fccb2b899cb09be8d9269a275ee50a934aa498..62867e3f335962245a8ba81d7601587b7bad4b61 100644 (file)
@@ -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'],
index da11368ed597b39b074c973325a61c8cb70e62ab..2764ad9ad481e47178a66cb8f07baafda7125e98 100644 (file)
@@ -703,6 +703,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    448,
 /**/
     447,
 /**/