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; }