[vim/vim] runtime: rename `wast` filetype to `wat` (Wasm text format) (PR #13533)

37 views
Skip to first unread message

Linda_pp

unread,
Nov 13, 2023, 10:50:34 AM11/13/23
to vim/vim, Subscribed

Hi, this is a patch from upstream vim-wasm repository to fix this issue reported in upstream project.

The problem is the name of the filetype wast. When I firstly created this filetype plugin, the file extension for Wasm text format was not fixed and .wast was most 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

To follow the change and avoid confusion in filetype name, this PR renames wast filetype to wat. Since .wast files are highlighted as wat files, the syntax highlighting for .wast files is maintained.


You can view, comment on, or merge this pull request online at:

  https://github.com/vim/vim/pull/13533

Commit Summary

  • 3e2f63f runtime: rename `wast` filetype to `wat` (Wasm text format)

File Changes

(7 files)

Patch Links:


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13533@github.com>

Linda_pp

unread,
Nov 13, 2023, 10:51:41 AM11/13/23
to vim/vim, Push

@rhysd pushed 1 commit.

  • 9291911 runtime: rename `wast` filetype to `wat` (Wasm text format)


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13533/push/15803805843@github.com>

Linda_pp

unread,
Nov 13, 2023, 11:00:14 AM11/13/23
to vim/vim, Push

@rhysd pushed 1 commit.

  • d53d352 runtime: rename `wast` filetype to `wat` (Wasm text format)


View it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13533/push/15803931709@github.com>

Christian Brabandt

unread,
Nov 14, 2023, 10:56:54 AM11/14/23
to vim/vim, Subscribed

I included it thanks. I suppose, eventuall we will need a separate wast filetype, which correctly handles the superset features.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13533/c1810509753@github.com>

Christian Brabandt

unread,
Nov 14, 2023, 11:04:28 AM11/14/23
to vim/vim, Subscribed

Closed #13533 via bc8f79d.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13533/issue_event/10956646013@github.com>

Linda_pp

unread,
Nov 14, 2023, 11:14:03 AM11/14/23
to vim/vim, Subscribed

Yeah, wast is different from wat so there should be a different syntax file which includes wat syntax file. I need to investigate what wast extends.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/pull/13533/c1810581692@github.com>

Reply all
Reply to author
Forward
0 new messages