Skip to content

Commit

Permalink
add alt-enter for the case where a line ends on an operator that expe…
Browse files Browse the repository at this point in the history
…cts another argument - fixes espruino/Espruino#1629
  • Loading branch information
gfwilliams committed Mar 8, 2019
1 parent 6061e44 commit e306dad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/codeWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e306dad

Please sign in to comment.