Fix emmet tests

This commit is contained in:
Ramya Achutha Rao
2018-03-13 00:07:05 -07:00
parent 6d5739d3ec
commit fa6a57bf47
3 changed files with 31 additions and 29 deletions

View File

@@ -474,6 +474,10 @@ export function isValidLocationForEmmetAbbreviation(document: vscode.TextDocumen
let valid = true;
let foundSpace = false; // If < is found before finding whitespace, then its valid abbreviation. Eg: <div|
let i = textToBackTrack.length - 1;
if (textToBackTrack[i] === startAngle) {
return false;
}
while (i >= 0) {
const char = textToBackTrack[i];
i--;