]> granicus.if.org Git - vim/commitdiff
patch 9.0.0711: SubStation Alpha files are not recognized v9.0.0711
authorObserverOfTime <chronobserver@disroot.org>
Mon, 10 Oct 2022 11:08:59 +0000 (12:08 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 10 Oct 2022 11:08:59 +0000 (12:08 +0100)
Problem:    SubStation Alpha files are not recognized.
Solution:   Add patterns for SubStation Alpha files. (closes #11332)

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

index d7e13e1cd37c4640e312b15bf10856f155890d83..98f8cceb9597648b1281e8e2ac87dd4a1d8d8835 100644 (file)
@@ -1750,6 +1750,9 @@ au BufNewFile,BufRead *.sed                       setf sed
 " SubRip
 au BufNewFile,BufRead *.srt                    setf srt
 
+" SubStation Alpha
+au BufNewFile,BufRead *.ass,*.ssa              setf ssa
+
 " svelte
 au BufNewFile,BufRead *.svelte                 setf svelte
 
index ba18b857847eed02ffb1882232aa3cbabbf2f76f..0449bfde1a65649abe811746f046a7aeac6b8791 100644 (file)
@@ -536,6 +536,7 @@ let s:filename_checks = {
     \ 'squirrel': ['file.nut'],
     \ 'srec': ['file.s19', 'file.s28', 'file.s37', 'file.mot', 'file.srec'],
     \ 'srt': ['file.srt'],
+    \ 'ssa': ['file.ass', 'file.ssa'],
     \ '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 2b922f3ab0db7b15fa6d44cb15b25a0ae0e1bccf..d3189fb5cce3b2f9b454cb5db27d1b936f3d99fd 100644 (file)
@@ -699,6 +699,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    711,
 /**/
     710,
 /**/