]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.1425: "wat" and "wast" files are one filetype v9.0.1425
authorAmaan Qureshi <amaanq12@gmail.com>
Thu, 23 Mar 2023 15:45:46 +0000 (15:45 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Mar 2023 15:45:46 +0000 (15:45 +0000)
Problem:    "wat" and "wast" files are one filetype.
Solution:   Add a separate filetype for "wat" files. (Amaan Qureshi,
            closes #12165)

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

index 322e1cc7dd6407bc29ad2d3ab1b10f3eb8a4d426..a286717d16a29df5a4ab984afd5b963c72774b1a 100644 (file)
@@ -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
index 8b422509b37c45113919f4e515027d449b488e30..2ae36b3b4010de670edb52936acc4e2da6231682 100644 (file)
@@ -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'],
index 243873303c502f88f91d1e6ca32626882607cd67..63428d309584fedd2e2a9625e02ba75e30b167a3 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1425,
 /**/
     1424,
 /**/