Introduce HighlighterLayer.WEAK_WARNING for Kotlin

Otherwise weak warnings are at the same layer as semantic highlighting,
that provides strange effects like KT-18212
This commit is contained in:
Alexey Kudravtsev
2017-06-09 11:55:16 +03:00
parent 292e59e0aa
commit 7a49869833
2 changed files with 4 additions and 0 deletions
@@ -395,6 +395,9 @@ public class UpdateHighlightersUtil {
if (severity == HighlightSeverity.WARNING) {
layer = HighlighterLayer.WARNING;
}
else if (severity == HighlightSeverity.WEAK_WARNING) {
layer = HighlighterLayer.WEAK_WARNING;
}
else if (severityRegistrar.compare(severity, HighlightSeverity.ERROR) >= 0) {
layer = HighlighterLayer.ERROR;
}
@@ -20,6 +20,7 @@ public interface HighlighterLayer {
int CARET_ROW = 2000;
int ADDITIONAL_SYNTAX = 3000;
int GUARDED_BLOCKS = 3500;
int WEAK_WARNING = 3750;
int WARNING = 4000;
int ERROR = 5000;
int ELEMENT_UNDER_CARET = 5500;