🚸 only use end
to end command definition
This commit is contained in:
parent
4a6a97aec5
commit
cae42e4fbd
@ -185,7 +185,7 @@ halt
|
||||
|
||||
# return from command to parent scope
|
||||
# halt program in root scope
|
||||
exit|return|end
|
||||
exit|return
|
||||
|
||||
|
||||
|
||||
|
@ -160,8 +160,8 @@ class Juicescript_parser {
|
||||
parse_end(){
|
||||
// ARE WE IN ROOT SCOPE? //
|
||||
if(this.scope === null){
|
||||
// add as command
|
||||
this.command_add({name: "end"});
|
||||
// unexpected (ignore with error)
|
||||
this.error_token("unexpected token");
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user