changeset 30224:1fbc86e18258 v9.0.0448

patch 9.0.0448: SubRip files are not recognized Commit: https://github.com/vim/vim/commit/5a4eb55122e45444d3a6c56ce108ce29bc8e52ab Author: ObserverOfTime <chronobserver@disroot.org> Date: Mon Sep 12 12:43:23 2022 +0100 patch 9.0.0448: SubRip files are not recognized Problem: SubRip files are not recognized. Solution: Add a pattern for SubRip. (closes https://github.com/vim/vim/issues/11113)
author Bram Moolenaar <Bram@vim.org>
date Mon, 12 Sep 2022 14:00:05 +0200
parents 75c349a325e6
children 51f58c2d23fa
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -1723,6 +1723,9 @@ au BufNewFile,BufRead *.sdl,*.pr		setf s
 " sed
 au BufNewFile,BufRead *.sed			setf sed
 
+" SubRip
+au BufNewFile,BufRead *.srt			setf srt
+
 " svelte
 au BufNewFile,BufRead *.svelte			setf svelte
 
--- 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'],
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    448,
+/**/
     447,
 /**/
     446,