Allow bracket insertion after closing bracket: }()
This commit is contained in:
parent
99f6953108
commit
40bc5ee79a
1 changed files with 1 additions and 1 deletions
|
|
@ -46,7 +46,7 @@ var CstyleBehaviour = function () {
|
|||
var iterator = new TokenIterator(session, cursor.row, cursor.column);
|
||||
|
||||
// Don't insert in the middle of a keyword/identifier/lexical
|
||||
if (!this.$matchTokenType(iterator.getCurrentToken() || "text", ["text"])) {
|
||||
if (!this.$matchTokenType(iterator.getCurrentToken() || "text", ["text", "paren.rparen"])) {
|
||||
// Look ahead in case we're at the end of a token
|
||||
iterator = new TokenIterator(session, cursor.row, cursor.column + 1);
|
||||
if (!this.$matchTokenType(iterator.getCurrentToken() || "text", ["text", "paren.rparen"]))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue