diff --git a/core/codeWriter.js b/core/codeWriter.js index 56bdeb2..33c8b50 100644 --- a/core/codeWriter.js +++ b/core/codeWriter.js @@ -179,7 +179,7 @@ } else if (tok.str==")" && statementBeforeBrackets) { statementBeforeBrackets = false; statement = true; - } else if (tok.str=="=" || tok.str=="do") { + } else if (["=","^","&&","||","+","+=","-","-=","*","*=","/","/=","%","%=","&","&=","|","|="].indexOf(tok.str)>=0) { statement = true; } else { if (tok.str==";") varDeclaration = false;