From 2d7a85f6c9c1bb672ec87f1c7788f7e372514ff8 Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Fri, 9 Sep 2022 17:06:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A5=20remove=20single=20equal=20sign?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lexer.js | 2 +- src/main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lexer.js b/src/lexer.js index 934db89..1fc6e8a 100644 --- a/src/lexer.js +++ b/src/lexer.js @@ -88,7 +88,7 @@ class Juicescript_lexer { case "=": if (this.match("=")) this.token_add({type: Juicescript.token_type.EQUAL_EQUAL}); - else this.token_add({type: Juicescript.token_type.EQUAL}); + else this.error("unexpected character '" + this.char + "'"); break; case "<": diff --git a/src/main.js b/src/main.js index 3cf26e9..12e5e1a 100644 --- a/src/main.js +++ b/src/main.js @@ -13,7 +13,7 @@ class Juicescript { "NULL", // operators - "EQUAL", "NOT", + "NOT", "EQUAL_EQUAL", "NOT_EQUAL", "GREATER", "GREATER_EQUAL", "LESS", "LESS_EQUAL",