0
0

keep track of single equal sign =

This commit is contained in:
DrMaxNix 2022-09-08 21:05:08 +02:00
parent d9256b243a
commit 53254b88a0

View File

@ -86,8 +86,8 @@ class Juicescript_lexer {
break;
case "=":
if (this.match("=")) this.token_add({type: Juicescript.token_type.EQUAL});
else this.error("unexpected character '" + this.char + "'");
if (this.match("=")) this.token_add({type: Juicescript.token_type.EQUAL_EQUAL});
else this.token_add({type: Juicescript.token_type.EQUAL});
break;
case "<":