mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 06:50:54 +07:00
[search] add braces (IJ-CR-101458)
GitOrigin-RevId: 4e410005cdf9a1f42dbf4d7d1011a09e2bed1325
This commit is contained in:
committed by
intellij-monorepo-bot
parent
24881b3a2e
commit
3934568cf3
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2022 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.usages;
|
||||
|
||||
import com.intellij.injected.editor.DocumentWindow;
|
||||
@@ -282,8 +282,12 @@ public final class ChunkExtractor {
|
||||
}
|
||||
|
||||
private static @Nullable UsageType deriveUsageTypeFromHighlighting(@NotNull TextAttributesKey @NotNull [] tokenAttributeKeys) {
|
||||
if (isHighlightedAsString(tokenAttributeKeys)) return UsageType.LITERAL_USAGE;
|
||||
if (isHighlightedAsComment(tokenAttributeKeys)) return UsageType.COMMENT_USAGE;
|
||||
if (isHighlightedAsString(tokenAttributeKeys)) {
|
||||
return UsageType.LITERAL_USAGE;
|
||||
}
|
||||
if (isHighlightedAsComment(tokenAttributeKeys)) {
|
||||
return UsageType.COMMENT_USAGE;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user