Multiple line comments in WebAssembly

Viewed 99

Is there any way to write a several-lines comment in Wasm (wat)? I know that ;; is used for a one-line comment.

1 Answers

Yes there is, it is (; ;): These comments can also be nested.

(;  
my
multi (; line ;)
comment   
;)

It is written in the specification Section 6.2.4 (Text Format - Lexical Format - Comments).

Related