Skip to content

Commit f4ed56b

Browse files
committed
Ignore php tag when deciding if cursor is inside open tag Fixes #41216
1 parent 5fe3f97 commit f4ed56b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

extensions/emmet/src/abbreviationActions.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,7 @@ export function isValidLocationForEmmetAbbreviation(document: vscode.TextDocumen
278278
const startAngle = '<';
279279
const endAngle = '>';
280280
const escape = '\\';
281+
const question = '?';
281282
const currentHtmlNode = <HtmlNode>currentNode;
282283
let start = new vscode.Position(0, 0);
283284

@@ -324,6 +325,10 @@ export function isValidLocationForEmmetAbbreviation(document: vscode.TextDocumen
324325
foundSpace = true;
325326
continue;
326327
}
328+
if (char === question && textToBackTrack[i] === startAngle) {
329+
i--;
330+
continue;
331+
}
327332
if (char !== startAngle && char !== endAngle) {
328333
continue;
329334
}

0 commit comments

Comments
 (0)