mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-26644 when no tag name is present, associate dom errors with the whole tag
This commit is contained in:
+4
-1
@@ -174,7 +174,10 @@ public class DomElementProblemDescriptorImpl implements DomElementProblemDescrip
|
||||
|
||||
private static Pair<TextRange, PsiElement> createTagNameRange(final XmlTag tag) {
|
||||
final PsiElement startToken = XmlTagUtil.getStartTagNameElement(tag);
|
||||
assert startToken != null : tag.getText();
|
||||
if (startToken == null) {
|
||||
return Pair.create(tag.getTextRange(), (PsiElement)tag);
|
||||
}
|
||||
|
||||
return Pair.create(startToken.getTextRange().shiftRight(-tag.getTextRange().getStartOffset()), (PsiElement)tag);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user