Allow insertion before semmies
This commit is contained in:
parent
6953b175a1
commit
45d7c6a7ee
1 changed files with 1 additions and 0 deletions
|
|
@ -56,6 +56,7 @@ var CstyleBehaviour = function () {
|
||||||
// Only insert in front of whitespace/comments
|
// Only insert in front of whitespace/comments
|
||||||
iterator.stepForward();
|
iterator.stepForward();
|
||||||
return iterator.getCurrentTokenRow() !== cursor.row ||
|
return iterator.getCurrentTokenRow() !== cursor.row ||
|
||||||
|
(iterator.getCurrentToken() && iterator.getCurrentToken().value === ";") ||
|
||||||
this.$matchTokenType(iterator.getCurrentToken() || "text", ["text", "comment", "paren.rparen"]);
|
this.$matchTokenType(iterator.getCurrentToken() || "text", ["text", "comment", "paren.rparen"]);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue