From d58c26e37a40ab7fe796c639b6a652fb01b6d109 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 13 May 2016 10:36:48 -0700 Subject: do not error on s-expr comments starting in strings --- src/wasm-s-parser.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index 9de9af417..28ef7231a 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -242,7 +242,7 @@ private: input++; return allocator.alloc()->setString(IString(str.c_str(), false), dollared)->setMetadata(line, start - lineStart); } - while (input[0] && !isspace(input[0]) && input[0] != ')' && input[0] != '(') input++; + while (input[0] && !isspace(input[0]) && input[0] != ')' && input[0] != '(' && input[0] != ';') input++; char temp = input[0]; input[0] = 0; auto ret = allocator.alloc()->setString(IString(start, false), dollared)->setMetadata(line, start - lineStart); -- cgit v1.2.3