From 53254b88a0ed6a96af83682002c76fb0bb86507c Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Thu, 8 Sep 2022 21:05:08 +0200 Subject: [PATCH] :sparkles: keep track of single equal sign `=` --- src/lexer.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 "<":