We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a11a5b commit 3d9ec15Copy full SHA for 3d9ec15
src/wast-lexer.cc
@@ -70,7 +70,7 @@ Token WastLexer::GetToken() {
70
}
71
return BareToken(TokenType::Eof);
72
} else if (MatchString("(@")) {
73
- ReadReservedChars();
+ GetIdToken();
74
// offset=2 to skip the "(@" prefix
75
return TextToken(TokenType::LparAnn, 2);
76
} else {
test/regress/bad-annotation.txt
@@ -0,0 +1,12 @@
1
+;;; TOOL: wat2wasm
2
+;;; ERROR: 1
3
+(@"annotation
4
+
5
+(;; STDERR ;;;
6
+out/test/regress/bad-annotation.txt:3:1: error: annotations not enabled: "annotation
7
8
+^^^^^^^^^^^^^
9
+out/test/regress/bad-annotation.txt:3:1: error: unexpected token "Invalid", expected a module field or a module.
10
11
12
+;;; STDERR ;;)
0 commit comments