Fix tag completion bug.
This commit is contained in:
parent
cbcec10164
commit
5c30d861fa
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ function hasType(token, type) {
|
||||||
} else {
|
} else {
|
||||||
atCursor = true;
|
atCursor = true;
|
||||||
}
|
}
|
||||||
if (!token || !hasType(token, 'meta.tag') || iterator.stepBackward().value.match('/')) {
|
var previous = iterator.stepBackward();
|
||||||
|
if (!token || !hasType(token, 'meta.tag') || (previous !== null && previous.value.match('/'))) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
var tag = token.value.substring(1);
|
var tag = token.value.substring(1);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue