🚸 warn on unterminated command definition
This commit is contained in:
parent
2e54a114dd
commit
fd2c040662
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user