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;
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
长的要放在短的前面
|
||||
|
||||
^.{7}
|
||||
(?<=.{72}).*
|
||||
\. .
|
||||
\, ,
|
||||
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
COBOL 数据类型【关键字】
|
||||
|
||||
66 重命名
|
||||
77 不能被细分项
|
||||
88 条件名
|
||||
66 重命名
|
||||
77 不能被细分项
|
||||
88 条件名
|
||||
|
||||
9\( ( 数字
|
||||
A\( ( 字母
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
COBOL 数据部必要【关键字】
|
||||
^.{7} +\d{2}
|
||||
^.{7} +[0-59]{2}
|
||||
PIC
|
||||
COPY
|
||||
REPLACING
|
||||
|
Reference in New Issue
Block a user