highlight "Generator expression must be parenthesized if not sole argument" (PY-6926)

This commit is contained in:
Dmitry Jemerov
2012-08-07 12:58:27 +02:00
parent 844281a05b
commit ac79b9b143
4 changed files with 29 additions and 0 deletions

View File

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