Files
openide/python/testData/console/ipython/psi/magicAssignment.txt
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

27 lines
851 B
Plaintext

PyFile:magicAssignment.py
PyAssignmentStatement
PyTargetExpression: results
PsiElement(Py:IDENTIFIER)('results')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyEmptyExpression
PsiElement(Py:PERC)('%')
PsiElement(Py:IDENTIFIER)('timeit')
PsiWhiteSpace(' ')
PsiElement(Py:MINUS)('-')
PsiElement(Py:IDENTIFIER)('r1')
PsiWhiteSpace(' ')
PsiElement(Py:MINUS)('-')
PsiElement(Py:IDENTIFIER)('n1')
PsiWhiteSpace(' ')
PsiElement(Py:MINUS)('-')
PsiElement(Py:IDENTIFIER)('o')
PsiWhiteSpace(' ')
PsiElement(Py:IDENTIFIER)('list')
PsiElement(Py:LPAR)('(')
PsiElement(Py:IDENTIFIER)('range')
PsiElement(Py:LPAR)('(')
PsiElement(Py:INTEGER_LITERAL)('1000')
PsiElement(Py:RPAR)(')')
PsiElement(Py:RPAR)(')')