提交 f4ed56b0 编写于 作者: R Ramya Achutha Rao

Ignore php tag when deciding if cursor is inside open tag Fixes #41216

上级 5fe3f97e
......@@ -278,6 +278,7 @@ export function isValidLocationForEmmetAbbreviation(document: vscode.TextDocumen
const startAngle = '<';
const endAngle = '>';
const escape = '\\';
const question = '?';
const currentHtmlNode = <HtmlNode>currentNode;
let start = new vscode.Position(0, 0);
......@@ -324,6 +325,10 @@ export function isValidLocationForEmmetAbbreviation(document: vscode.TextDocumen
foundSpace = true;
continue;
}
if (char === question && textToBackTrack[i] === startAngle) {
i--;
continue;
}
if (char !== startAngle && char !== endAngle) {
continue;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册