Don't require ; to have space after in comments
This commit is contained in:
3
asm.js
3
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;
|
||||
|
||||
Reference in New Issue
Block a user