do not autoclose tags inside of strings
This commit is contained in:
parent
c4aa28793f
commit
e84ec9e27a
1 changed files with 2 additions and 2 deletions
|
|
@ -59,8 +59,8 @@ 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))
|
||||
|
||||
if (hasType(token, 'string') && iterator.getCurrentTokenColumn() + token.value.length > position.column)
|
||||
return;
|
||||
var atCursor = false;
|
||||
if (!token || !hasType(token, 'meta.tag') && !(hasType(token, 'text') && token.value.match('/'))){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue