Allow insertion before semmies

This commit is contained in:
Lennart Kats 2012-10-24 14:59:09 +02:00 committed by nightwing
commit 45d7c6a7ee

View file

@ -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"]);
};