Mercurial > vim
changeset 30753:b6b326671396 v9.0.0711
patch 9.0.0711: SubStation Alpha files are not recognized
Commit: https://github.com/vim/vim/commit/084f2620ec7d08d6043de30436197c002fffe3ec
Author: ObserverOfTime <chronobserver@disroot.org>
Date: Mon Oct 10 12:08:59 2022 +0100
patch 9.0.0711: SubStation Alpha files are not recognized
Problem: SubStation Alpha files are not recognized.
Solution: Add patterns for SubStation Alpha files. (closes https://github.com/vim/vim/issues/11332)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Oct 2022 13:15:03 +0200 |
parents | 93de7f063b1c |
children | 12f55dde9050 |
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 @@ -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
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -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'],