mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
PY-10972 Recursively detect the alignment owner for the new block on enter
by properly implementing Block.isIncomplete() for collection literals, comprehensions and parenthesized expressions instead of hand-written search for the preceding expression lacking the closing bracket.
This commit is contained in:
@@ -642,4 +642,19 @@ public class PyEditingTest extends PyTestCase {
|
||||
public void testEnterInIncompleteParenthesizedGenerator() {
|
||||
doTypingTest("\nfoo");
|
||||
}
|
||||
|
||||
// PY-10972
|
||||
public void testEnterInIncompleteNestedListLiteral() {
|
||||
doTypingTest("\n'baz'");
|
||||
}
|
||||
|
||||
// PY-10972
|
||||
public void testEnterInIncompleteNestedTupleLiteral() {
|
||||
doTypingTest("\n'baz'");
|
||||
}
|
||||
|
||||
// PY-10972
|
||||
public void testEnterInIncompleteNestedGluedStringInParentheses() {
|
||||
doTypingTest("\n'baz'");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user