the string not change color

fix the bug, when string matched, the string not change color
This commit is contained in:
Tconan99 2019-06-13 11:50:24 +08:00 committed by Alexander Zolotov
parent 623855e7fd
commit bbe5984b97

View File

@ -35,7 +35,7 @@ public class SimpleAnnotator implements Annotator {
List<SimpleProperty> properties = SimpleUtil.findProperties(project, key);
if (properties.size() == 1) {
TextRange range = new TextRange(element.getTextRange().getStartOffset() + 7,
element.getTextRange().getStartOffset() + 7);
element.getTextRange().getEndOffset());
Annotation annotation = holder.createInfoAnnotation(range, null);
annotation.setTextAttributes(DefaultLanguageHighlighterColors.LINE_COMMENT);
} else if (properties.size() == 0) {