PY-12634 Highlight decorator with space between '@' and name

Added the same highlighting for '@' as for the name.
This commit is contained in:
Andrey Vlasovskikh
2017-07-03 18:28:00 +03:00
parent 5296e55b9b
commit cb678d53f3
4 changed files with 23 additions and 9 deletions

View File

@@ -370,6 +370,11 @@ public class PythonHighlightingTest extends PyTestCase {
runWithLanguageLevel(LanguageLevel.PYTHON36, () -> doTest(true, false));
}
// PY-12634
public void testSpaceBetweenAtAndDecorator() {
doTest(true, true);
}
// ---
private void doTest(final LanguageLevel languageLevel, final boolean checkWarnings, final boolean checkInfos) {
PythonLanguageLevelPusher.setForcedLanguageLevel(myFixture.getProject(), languageLevel);