do not autoclose tags after %#? etc
This commit is contained in:
parent
495318ef6b
commit
d3cc3ab5aa
1 changed files with 3 additions and 0 deletions
|
|
@ -59,6 +59,9 @@ var HtmlBehaviour = function () {
|
|||
var position = editor.getCursorPosition();
|
||||
var iterator = new TokenIterator(session, position.row, position.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
var ch = session.getLine(position.row)[position.column - 1];
|
||||
if (!/[\w:."'\s]/.test(ch))
|
||||
return;
|
||||
var atCursor = false;
|
||||
if (!token || !hasType(token, 'meta.tag') && !(hasType(token, 'text') && token.value.match('/'))){
|
||||
do {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue