Files
openide/python/testData/psi/LongString.txt
Ekaterina Tuzova ef175a3436 separated token types for single/double and triple quoted strings
added lexer-level bytes/unicode detection
added lexer-level docstring detection
2011-07-10 17:59:57 +04:00

46 lines
1.4 KiB
Plaintext

PyFile:LongString.py
PyAssignmentStatement
PyTargetExpression: a
PsiElement(Py:IDENTIFIER)('a')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
PsiElement(Py:TRIPLE_QUOTED_STRING)('""""""')
PsiWhiteSpace('\n')
PyAssignmentStatement
PyTargetExpression: b
PsiElement(Py:IDENTIFIER)('b')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyStringLiteralExpression:
"1.0" encoding="ascii"?
PsiElement(Py:TRIPLE_QUOTED_STRING)('"""\n"1.0" encoding="ascii"?\n"""')
PsiWhiteSpace('\n')
PyAssignmentStatement
PyTargetExpression: str
PsiElement(Py:IDENTIFIER)('str')
PsiWhiteSpace(' ')
PsiElement(Py:EQ)('=')
PsiWhiteSpace(' ')
PyCallExpression: re.sub
PyReferenceExpression: sub
PyReferenceExpression: re
PsiElement(Py:IDENTIFIER)('re')
PsiElement(Py:DOT)('.')
PsiElement(Py:IDENTIFIER)('sub')
PyArgumentList
PsiElement(Py:LPAR)('(')
PyStringLiteralExpression: \\\\
PsiElement(Py:TRIPLE_QUOTED_STRING)('r"""\\\\"""')
PsiElement(Py:COMMA)(',')
PsiWhiteSpace(' ')
PyStringLiteralExpression: \
PsiElement(Py:TRIPLE_QUOTED_STRING)('r"""\"""')
PsiElement(Py:COMMA)(',')
PsiWhiteSpace(' ')
PyReferenceExpression: str
PsiElement(Py:IDENTIFIER)('str')
PsiElement(Py:RPAR)(')')