mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
cleanup
This commit is contained in:
@@ -156,14 +156,13 @@ public class XmlBraceMatcher implements XmlAwareBraceMatcher {
|
||||
pair.isStructural()) return true;
|
||||
}
|
||||
}
|
||||
return isXmlStructuralBrace(iterator, text, fileType, tokenType);
|
||||
return isXmlStructuralBrace(tokenType);
|
||||
}
|
||||
|
||||
protected boolean isXmlStructuralBrace(HighlighterIterator iterator, CharSequence text, FileType fileType, IElementType tokenType) {
|
||||
protected boolean isXmlStructuralBrace(IElementType tokenType) {
|
||||
return tokenType == XmlTokenType.XML_START_TAG_START ||
|
||||
tokenType == XmlTokenType.XML_TAG_END ||
|
||||
tokenType == XmlTokenType.XML_EMPTY_ELEMENT_END ||
|
||||
tokenType == XmlTokenType.XML_TAG_END && isFileTypeWithSingleHtmlTags(fileType) && isEndOfSingleHtmlTag(text, iterator);
|
||||
tokenType == XmlTokenType.XML_EMPTY_ELEMENT_END;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -210,11 +209,6 @@ public class XmlBraceMatcher implements XmlAwareBraceMatcher {
|
||||
return tokenType == XmlTokenType.XML_END_TAG_START;
|
||||
}
|
||||
|
||||
private boolean isEndOfSingleHtmlTag(CharSequence text,HighlighterIterator iterator) {
|
||||
String tagName = getTagName(text,iterator);
|
||||
return tagName != null && HtmlUtil.isSingleHtmlTag(tagName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTagName(CharSequence fileText, HighlighterIterator iterator) {
|
||||
final IElementType tokenType = iterator.getTokenType();
|
||||
|
||||
Reference in New Issue
Block a user