]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1423: WebAssembly Interface Type files are not recognized v9.0.1423
authorAmaan Qureshi <amaanq12@gmail.com>
Tue, 21 Mar 2023 22:03:15 +0000 (22:03 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 21 Mar 2023 22:03:15 +0000 (22:03 +0000)
Problem:    WebAssembly Interface Type files are not recognized.
Solution:   Add a pattern for WIT files. (Amaan Qureshi, closes #12173)

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

index 90ba9613ef0ddcce9271f29c5de561363def14fc..322e1cc7dd6407bc29ad2d3ab1b10f3eb8a4d426 100644 (file)
@@ -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
 
index e5f16cd7e678e28a1b21fc7337de260ce0ad3504..8b422509b37c45113919f4e515027d449b488e30 100644 (file)
@@ -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'],
index 8ed826395f4e3733e1d9f3a5e9273aff8d8f9e84..3b9381961a384843154e02ba75ee0805142ded23 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1423,
 /**/
     1422,
 /**/