Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/PluginGenerate.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ private void GenerateGSetter(Project project, Document document) {
//在文档中找出record标签
private static List<String> findRecord(String text) {
text = text.replaceAll("%.*", "");
String pattern = "(-record\\([\\w\\s,\\{=\\\"\\[\\]\\}]*\\).)";
String pattern = "(-record\\([\\w\\s,\\{=(\\\"\\[\\]|\\\"\\[\\]::[\\])\\}]*\\).)";
Pattern p = Pattern.compile(pattern);
Matcher matcher = p.matcher(text);
List<String> record = new ArrayList<>();
Expand Down