From: Amaan Qureshi Date: Thu, 23 Mar 2023 15:45:46 +0000 (+0000) Subject: patch 9.0.1425: "wat" and "wast" files are one filetype X-Git-Tag: v9.0.1425 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ea62381c527395ae701715335776f427d22eb7b;p=thirdparty%2Fvim.git patch 9.0.1425: "wat" and "wast" files are one filetype Problem: "wat" and "wast" files are one filetype. Solution: Add a separate filetype for "wat" files. (Amaan Qureshi, closes #12165) --- diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 322e1cc7dd..a286717d16 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2343,7 +2343,8 @@ au BufNewFile,BufRead *.vroom setf vroom au BufNewFile,BufRead *.vue setf vue " WebAssembly -au BufNewFile,BufRead *.wast,*.wat setf wast +au BufNewFile,BufRead *.wat setf wat +au BufNewFile,BufRead *.wast setf wast " WebAssembly Interface Type (WIT) au BufNewFile,BufRead *.wit setf wit diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index 8b422509b3..2ae36b3b40 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -657,7 +657,8 @@ let s:filename_checks = { \ 'vrml': ['file.wrl'], \ 'vroom': ['file.vroom'], \ 'vue': ['file.vue'], - \ 'wast': ['file.wast', 'file.wat'], + \ 'wat': ['file.wat'], + \ 'wast': ['file.wast'], \ 'wdl': ['file.wdl'], \ 'webmacro': ['file.wm'], \ 'wget': ['.wgetrc', 'wgetrc'], diff --git a/src/version.c b/src/version.c index 243873303c..63428d3095 100644 --- a/src/version.c +++ b/src/version.c @@ -695,6 +695,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 1425, /**/ 1424, /**/