mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-121140 format spock tables in the end of a file
This commit is contained in:
+5
-1
@@ -405,7 +405,7 @@ public class GroovyBlockGenerator implements GroovyElementTypes {
|
||||
PsiElement psi = child.getPsi();
|
||||
if (psi instanceof GrLabeledStatement) {
|
||||
alignGroup(currentGroup, spock, classLevel);
|
||||
currentGroup = ContainerUtil.newArrayList(/*(GrStatement)psi*/);
|
||||
currentGroup = ContainerUtil.newArrayList();
|
||||
spock = true;
|
||||
}
|
||||
else if (currentGroup != null && spock && isTablePart(psi)) {
|
||||
@@ -428,6 +428,10 @@ public class GroovyBlockGenerator implements GroovyElementTypes {
|
||||
currentGroup = null;
|
||||
}
|
||||
}
|
||||
|
||||
if (currentGroup != null) {
|
||||
alignGroup(currentGroup, spock, classLevel);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean shouldSkip(boolean classLevel, PsiElement psi) {
|
||||
|
||||
Reference in New Issue
Block a user