diff --git a/lib/ace/mode/behaviour/cstyle.js b/lib/ace/mode/behaviour/cstyle.js index e05bc5b7..ab6fed23 100644 --- a/lib/ace/mode/behaviour/cstyle.js +++ b/lib/ace/mode/behaviour/cstyle.js @@ -56,6 +56,7 @@ var CstyleBehaviour = function () { // Only insert in front of whitespace/comments iterator.stepForward(); return iterator.getCurrentTokenRow() !== cursor.row || + (iterator.getCurrentToken() && iterator.getCurrentToken().value === ";") || this.$matchTokenType(iterator.getCurrentToken() || "text", ["text", "comment", "paren.rparen"]); };