# HG changeset patch # User Bram Moolenaar # Date 1679587206 -3600 # Node ID 70d078793ad28e82a8f4d3a9ec7560f9abc03aa4 # Parent 5c71bbcec778e1d649fa338afc4b2bddf849b6c8 patch 9.0.1425: "wat" and "wast" files are one filetype Commit: https://github.com/vim/vim/commit/3ea62381c527395ae701715335776f427d22eb7b Author: Amaan Qureshi Date: Thu Mar 23 15:45:46 2023 +0000 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 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2343,7 +2343,8 @@ au BufNewFile,BufRead *.vroom setf vro 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 --- 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 --- 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 */ /**/ + 1425, +/**/ 1424, /**/ 1423,