Skip to content

Commit 3ea6238

Browse files
amaanqbrammool
authored andcommitted
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)
1 parent 7ac3613 commit 3ea6238

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

runtime/filetype.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2343,7 +2343,8 @@ au BufNewFile,BufRead *.vroom setf vroom
23432343
au BufNewFile,BufRead *.vue setf vue
23442344

23452345
" WebAssembly
2346-
au BufNewFile,BufRead *.wast,*.wat setf wast
2346+
au BufNewFile,BufRead *.wat setf wat
2347+
au BufNewFile,BufRead *.wast setf wast
23472348

23482349
" WebAssembly Interface Type (WIT)
23492350
au BufNewFile,BufRead *.wit setf wit

src/testdir/test_filetype.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,8 @@ let s:filename_checks = {
657657
\ 'vrml': ['file.wrl'],
658658
\ 'vroom': ['file.vroom'],
659659
\ 'vue': ['file.vue'],
660-
\ 'wast': ['file.wast', 'file.wat'],
660+
\ 'wat': ['file.wat'],
661+
\ 'wast': ['file.wast'],
661662
\ 'wdl': ['file.wdl'],
662663
\ 'webmacro': ['file.wm'],
663664
\ 'wget': ['.wgetrc', 'wgetrc'],

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,8 @@ static char *(features[]) =
695695

696696
static int included_patches[] =
697697
{ /* Add new patch number below this line */
698+
/**/
699+
1425,
698700
/**/
699701
1424,
700702
/**/

0 commit comments

Comments
 (0)