mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
the string not change color
fix the bug, when string matched, the string not change color
This commit is contained in:
parent
623855e7fd
commit
bbe5984b97
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user