From bbe5984b9779a46b918c3d4fe5a700088c0f2880 Mon Sep 17 00:00:00 2001 From: Tconan99 <627594232@qq.com> Date: Thu, 13 Jun 2019 11:50:24 +0800 Subject: [PATCH] the string not change color fix the bug, when string matched, the string not change color --- tutorials/custom_language_support/annotator.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/custom_language_support/annotator.md b/tutorials/custom_language_support/annotator.md index f9ca9da6b..307769f9d 100644 --- a/tutorials/custom_language_support/annotator.md +++ b/tutorials/custom_language_support/annotator.md @@ -35,7 +35,7 @@ public class SimpleAnnotator implements Annotator { List 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) {