From fd2c04066200ceb7018b963f6e517fb5e63e830e Mon Sep 17 00:00:00 2001 From: DrMaxNix Date: Sat, 1 Oct 2022 16:17:43 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=B8=20warn=20on=20unterminated=20comma?= =?UTF-8?q?nd=20definition?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parser.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/parser.js b/src/parser.js index 821a2eb..9c7c909 100644 --- a/src/parser.js +++ b/src/parser.js @@ -40,6 +40,12 @@ class Juicescript_parser { } + // MAKE SURE WE'RE BACK TO ROOT SCOPE // + if(this.scope !== null){ + this.warning("unterminated command definition '" + this.scope + "'"); + } + + // RETURN PROGRAM TREE // return this.tree; }