From 1f6860afeb96795bd3a2478dda2c55b2ecce34c8 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Wed, 4 Nov 2015 14:54:35 -0800 Subject: handle ;; comments --- src/wasm-s-parser.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-s-parser.h b/src/wasm-s-parser.h index fe84b0098..fb72d5232 100644 --- a/src/wasm-s-parser.h +++ b/src/wasm-s-parser.h @@ -144,7 +144,14 @@ private: } void skipWhitespace() { - while (isspace(input[0])) input++; + while (1) { + while (isspace(input[0])) input++; + if (input[0] == ';' && input[1] == ';') { + while (input[0] != '\n') input++; + } else { + return; + } + } } Element* parseString() { -- cgit v1.2.3