Style and COBOL key | 格式化和 COBOL 关键字
This commit is contained in:
@@ -14,8 +14,8 @@ import com.intellij.psi.*;
|
||||
import com.intellij.psi.javadoc.PsiDocComment;
|
||||
import com.intellij.ui.ColoredTreeCellRenderer;
|
||||
import com.intellij.ui.SimpleTextAttributes;
|
||||
import io.github.linwancen.plugin.show.doc.PsiDocToStrDoc;
|
||||
import io.github.linwancen.plugin.show.doc.OwnerToPsiDocUtils;
|
||||
import io.github.linwancen.plugin.show.doc.PsiDocToStrDoc;
|
||||
import io.github.linwancen.plugin.show.ext.TreeExt;
|
||||
import io.github.linwancen.plugin.show.settings.AppSettingsState;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
@@ -2,7 +2,9 @@ package io.github.linwancen.plugin.show.doc;
|
||||
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.vfs.VirtualFile;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.JavaPsiFacade;
|
||||
import com.intellij.psi.PsiClass;
|
||||
import com.intellij.psi.PsiField;
|
||||
import com.intellij.psi.search.GlobalSearchScope;
|
||||
import com.intellij.psi.search.PsiShortNamesCache;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
@@ -48,7 +48,7 @@ class ConfCacheGetUtils {
|
||||
map.put(levelStr + "\b" + confPath, entry.getValue());
|
||||
} else if (confName.endsWith((name + confMidExt))) {
|
||||
map.put(levelStr + "\t" + confPath, entry.getValue());
|
||||
} else{
|
||||
} else {
|
||||
if (ext == null) {
|
||||
ext = "";
|
||||
}
|
||||
|
||||
@@ -10,7 +10,10 @@ import groovy.json.StringEscapeUtils;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.*;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.concurrent.ConcurrentHashMap;
|
||||
import java.util.regex.Pattern;
|
||||
|
||||
|
||||
@@ -43,8 +43,8 @@ public class FileViewToPsiDocRightToLeft {
|
||||
}
|
||||
|
||||
private static PsiDocComment psiDoc(AppSettingsState setting,
|
||||
PsiElement identifier, PsiElement element,
|
||||
int startOffset, int endOffset) {
|
||||
PsiElement identifier, PsiElement element,
|
||||
int startOffset, int endOffset) {
|
||||
if (identifier != null && !(identifier instanceof PsiIdentifier)) {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user