summaryrefslogtreecommitdiffstats
path: root/runtime/filetype.vim
diff options
context:
space:
mode:
authorrhysd <lin90162@yahoo.co.jp>2023-11-14 16:46:07 +0100
committerChristian Brabandt <cb@256bit.org>2023-11-14 16:46:07 +0100
commitbc8f79d36a456054ed29f46585830af6d71f57c8 (patch)
treeb9a1e2fafc15d9a35b8b42ab1e83466ddfa40966 /runtime/filetype.vim
parent30c762d99ac8e755afb00f89ddd009988e95abce (diff)
patch 9.0.2104: wast filetype should be replaced by wat filetypev9.0.2104
Problem: wast filetype should be replaced by wat filetype Solution: start using the official wat filetype name runtime: rename `wast` filetype to `wat` (Wasm text format) The problem is the name of the current filetype wast. When the plugin was initially created, the file extension for Wasm text format was not fixed and .wast was more popular. However, recently .wat became the official file extension for WebAssembly text (WAT) format and .wast is now a file extension for the unofficial WAST format, which is a superset of .wat for the convenience to describe the Wasm specification conformance tests. https://webassembly.js.org/docs/contrib-wat-vs-wast.html However for now, let's keep using the `wat` filetype even for the .wast extension, so that we at least do not lose the filetype settings and syntax highlighting. This can be adjusted later, if it turns out to have a separate need for. closes: #13533 Signed-off-by: rhysd <lin90162@yahoo.co.jp> Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/filetype.vim')
-rw-r--r--runtime/filetype.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index df7624d41a..b067c70e6a 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2454,8 +2454,7 @@ au BufNewFile,BufRead *.vroom setf vroom
au BufNewFile,BufRead *.vue setf vue
" WebAssembly
-au BufNewFile,BufRead *.wat setf wat
-au BufNewFile,BufRead *.wast setf wast
+au BufNewFile,BufRead *.wat,*.wast setf wat
" WebAssembly Interface Type (WIT)
au BufNewFile,BufRead *.wit setf wit