diff --git a/asm.js b/asm.js index f8377a5..6154f00 100644 --- a/asm.js +++ b/asm.js @@ -58,7 +58,8 @@ class Tokenizer { this.buffer.push(...src); let token; while (token = this.next()) { - if (token == this.comment_start) + if (token.string == undefined + && token.startsWith(this.comment_start)) this.comment = true; else if (this.comment && token == LINE_END) this.comment = false;