Support 'yield from' syntax (PY-6702)

This commit is contained in:
Andrey Vlasovskikh
2012-06-05 15:09:55 +04:00
parent 56a0c67e4a
commit b9939f1601
9 changed files with 67 additions and 3 deletions

View File

@@ -152,6 +152,11 @@ public class PythonHighlightingTest extends PyTestCase {
doTest(LanguageLevel.PYTHON33, true, false);
}
// PY-6702
public void testYieldFromBefore33() {
doTest(LanguageLevel.PYTHON32, true, false);
}
public void testYieldInNestedFunction() {
// highlight func declaration first, lest we get an "Extra fragment highlighted" error.
EditorColorsManager manager = EditorColorsManager.getInstance();