changeset 32188:70d078793ad2 v9.0.1425

patch 9.0.1425: "wat" and "wast" files are one filetype Commit: https://github.com/vim/vim/commit/3ea62381c527395ae701715335776f427d22eb7b Author: Amaan Qureshi <amaanq12@gmail.com> 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)
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Mar 2023 17:00:06 +0100
parents 5c71bbcec778
children 1a46b76ea2cb
files runtime/filetype.vim src/testdir/test_filetype.vim src/version.c
diffstat 3 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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'],
--- 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,