Files
openide/python/testData/console/ipython/psi/magicError.txt
T
Anton Bragin 3e3e9bb82e PY-32597 Console accommodates IPython syntax without generating parsing errors
IPython specific syntax is captured by console parser, including:
* Multiline magic
* Exclamation in suffixes
* Double exclamation
* Help syntax

Test classes for console moved to separate package.
2018-11-30 12:06:13 +03:00

13 lines
390 B
Plaintext

PyFile:magicError.py
PyAssignmentStatement
PyTargetExpression: b
PsiElement(Py:IDENTIFIER)('b')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiErrorElement:Multiline magic can't be used as an expression
<empty list>
PsiWhiteSpace(' ')
PyEmptyExpression
PsiElement(Py:PERC)('%')
PsiElement(Py:PERC)('%')
PsiElement(Py:IDENTIFIER)('bach')