Mercurial > vim
changeset 31688:ead5a3f43a4c v9.0.1176
patch 9.0.1176: smithy files are not recognized
Commit: https://github.com/vim/vim/commit/f68cddabffcbc5b8fbfe9003182cb4b55ff8d72c
Author: Chris Kipp <ckipp@pm.me>
Date: Wed Jan 11 12:20:10 2023 +0000
patch 9.0.1176: smithy files are not recognized
Problem: smithy files are not recognized.
Solution: Add a pattern for Smithy files. (Chris Kipp, closes https://github.com/vim/vim/issues/11804)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 11 Jan 2023 13:30:03 +0100 |
parents | 2357c7d1d94f |
children | bdba967e3aac |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -110,9 +110,11 @@ au BufNewFile,BufRead *.a65 setf a65 " Applescript au BufNewFile,BufRead *.scpt setf applescript +" Automake (must be before the *.am pattern) +au BufNewFile,BufRead [mM]akefile.am,GNUmakefile.am setf automake + " Applix ELF -au BufNewFile,BufRead *.am - \ if expand("<afile>") !~? 'Makefile.am\>' | setf elf | endif +au BufNewFile,BufRead *.am setf elf " ALSA configuration au BufNewFile,BufRead .asoundrc,*/usr/share/alsa/alsa.conf,*/etc/asound.conf setf alsaconf @@ -187,9 +189,6 @@ au BufNewFile,BufRead *.au3 setf autoi " Autohotkey au BufNewFile,BufRead *.ahk setf autohotkey -" Automake -au BufNewFile,BufRead [mM]akefile.am,GNUmakefile.am setf automake - " Autotest .at files are actually m4 au BufNewFile,BufRead *.at setf m4 @@ -1928,6 +1927,9 @@ au BufNewFile,BufRead *.smi " SMITH au BufNewFile,BufRead *.smt,*.smith setf smith +" Smithy +au BufNewFile,BufRead *.smithy setf smithy + " Snobol4 and spitbol au BufNewFile,BufRead *.sno,*.spt setf snobol4
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -528,6 +528,7 @@ let s:filename_checks = { \ 'smarty': ['file.tpl'], \ 'smcl': ['file.hlp', 'file.ihlp', 'file.smcl'], \ 'smith': ['file.smt', 'file.smith'], + \ 'smithy': ['file.smithy'], \ 'sml': ['file.sml'], \ 'snobol4': ['file.sno', 'file.spt'], \ 'solidity': ['file.sol'],