From f52eb5e36360e4f42ed93a41589fb19de6ab2944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20C=C3=A9bron?= Date: Tue, 29 Jan 2019 20:37:05 +0100 Subject: [PATCH] IDEA-206150 Something wrong in ExtensionOrderConverter#isBeforeOrAfterKeyword(java.lang.String, boolean) --- .../devkit-core/src/dom/ExtensionOrderConverter.java | 4 ++-- .../testData/codeInsight/orderAttributeHighlighting.xml | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/plugins/devkit/devkit-core/src/dom/ExtensionOrderConverter.java b/plugins/devkit/devkit-core/src/dom/ExtensionOrderConverter.java index 75d28d4cd4c3..f733a2273c53 100644 --- a/plugins/devkit/devkit-core/src/dom/ExtensionOrderConverter.java +++ b/plugins/devkit/devkit-core/src/dom/ExtensionOrderConverter.java @@ -1,4 +1,4 @@ -// Copyright 2000-2017 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. +// Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.idea.devkit.dom; import com.intellij.codeInsight.completion.CompletionUtil; @@ -125,7 +125,7 @@ public class ExtensionOrderConverter implements CustomReferenceConverter return (trimKeyword ? LoadingOrder.BEFORE_STR.trim() : LoadingOrder.BEFORE_STR).equalsIgnoreCase(str) || (trimKeyword ? LoadingOrder.AFTER_STR.trim(): LoadingOrder.AFTER_STR).equalsIgnoreCase(str) || LoadingOrder.BEFORE_STR_OLD.equalsIgnoreCase(str) || - LoadingOrder.BEFORE_STR_OLD.equalsIgnoreCase(str); + LoadingOrder.AFTER_STR_OLD.equalsIgnoreCase(str); } diff --git a/plugins/devkit/devkit-java-tests/testData/codeInsight/orderAttributeHighlighting.xml b/plugins/devkit/devkit-java-tests/testData/codeInsight/orderAttributeHighlighting.xml index 4ff97d7c9330..cde36947f42a 100644 --- a/plugins/devkit/devkit-java-tests/testData/codeInsight/orderAttributeHighlighting.xml +++ b/plugins/devkit/devkit-java-tests/testData/codeInsight/orderAttributeHighlighting.xml @@ -14,5 +14,12 @@ wrongId"/> wrongId"/> + + wrongId"/> + wrongId"/> + wrongId"/> + wrongId"/> + + wrongKeyword id6"/> \ No newline at end of file