From 45d7c6a7ee342a0e81bf5efff99d88453d081268 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Wed, 24 Oct 2012 14:59:09 +0200 Subject: [PATCH] Allow insertion before semmies --- lib/ace/mode/behaviour/cstyle.js | 1 + 1 file changed, 1 insertion(+) 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"]); };