Fixed autoclosing tag behaviour in XQuery.
This commit is contained in:
parent
d6b26632eb
commit
78a67e95a7
1 changed files with 2 additions and 0 deletions
|
|
@ -60,6 +60,8 @@ function hasType(token, type) {
|
|||
var iterator = new TokenIterator(session, position.row, position.column);
|
||||
var token = iterator.getCurrentToken();
|
||||
var atCursor = false;
|
||||
var state = JSON.parse(state).pop();
|
||||
if ((token && token.value === '>') || state !== "StartTag") return;
|
||||
if (!token || !hasType(token, 'meta.tag') && !(hasType(token, 'text') && token.value.match('/'))){
|
||||
do {
|
||||
token = iterator.stepBackward();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue