mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
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:
+3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user