commit ee5008f8789f61a3b153220abb870dd49427e52c
parent b155608bffd4e599d26fb648327705946458e012
Author: Christian Clason <c.clason@uni-graz.at>
Date: Fri, 24 Mar 2023 14:06:04 +0100
vim-patch:9.0.1425: "wat" and "wast" files are one filetype (#22774)
Problem: "wat" and "wast" files are one filetype.
Solution: Add a separate filetype for "wat" files. (Amaan Qureshi,
closes vim/vim#12165)
https://github.com/vim/vim/commit/3ea62381c527395ae701715335776f427d22eb7b
Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/runtime/lua/vim/filetype.lua b/runtime/lua/vim/filetype.lua
@@ -1103,8 +1103,8 @@ local extension = {
wrl = 'vrml',
vroom = 'vroom',
vue = 'vue',
- wat = 'wast',
wast = 'wast',
+ wat = 'wat',
wdl = 'wdl',
wm = 'webmacro',
wbt = 'winbatch',
diff --git a/test/old/testdir/test_filetype.vim b/test/old/testdir/test_filetype.vim
@@ -658,7 +658,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'],