diff --git a/src/lexer.js b/src/lexer.js index 7725231..380d574 100644 --- a/src/lexer.js +++ b/src/lexer.js @@ -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 "<":