vim-patch:9.0.0711: SubStation Alpha files are not recognized (#20577)

Problem:    SubStation Alpha files are not recognized.
Solution:   Add patterns for SubStation Alpha files. (closes vim/vim#11332)
084f2620ec
This commit is contained in:
Christian Clason 2022-10-10 17:51:31 +02:00 committed by GitHub
parent 3ddd99ec64
commit 8781213f00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 0 deletions

View File

@ -1751,6 +1751,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

View File

@ -970,6 +970,8 @@ local extension = {
mot = 'srec',
['s19'] = 'srec',
srt = 'srt',
ssa = 'ssa',
ass = 'ssa',
st = 'st',
imata = 'stata',
['do'] = 'stata',

View File

@ -537,6 +537,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'],