# HG changeset patch # User Bram Moolenaar # Date 1679436904 -3600 # Node ID f1602cf7022fbb63f2a2d5c8ff0c0a3199ca0662 # Parent 819e403d09a060825e9f1f5916b65ddc2b87b8eb patch 9.0.1423: WebAssembly Interface Type files are not recognized Commit: https://github.com/vim/vim/commit/890c77203637626b1005db818667084d11e653e7 Author: Amaan Qureshi Date: Tue Mar 21 22:03:15 2023 +0000 patch 9.0.1423: WebAssembly Interface Type files are not recognized Problem: WebAssembly Interface Type files are not recognized. Solution: Add a pattern for WIT files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12173) diff --git a/runtime/filetype.vim b/runtime/filetype.vim --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2345,6 +2345,9 @@ au BufNewFile,BufRead *.vue setf vue " WebAssembly au BufNewFile,BufRead *.wast,*.wat setf wast +" WebAssembly Interface Type (WIT) +au BufNewFile,BufRead *.wit setf wit + " Webmacro au BufNewFile,BufRead *.wm setf webmacro diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -663,6 +663,7 @@ let s:filename_checks = { \ 'wget': ['.wgetrc', 'wgetrc'], \ 'wget2': ['.wget2rc', 'wget2rc'], \ 'winbatch': ['file.wbt'], + \ 'wit': ['file.wit'], \ 'wml': ['file.wml'], \ 'wsh': ['file.wsf', 'file.wsc'], \ 'wsml': ['file.wsml'], diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -696,6 +696,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1423, +/**/ 1422, /**/ 1421,