mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-05 08:06:56 +07:00
so as not to cause confusion with ASTNode. Also additionally rename PyLiteralStringElement to PyPlainStringElement, again, not to confuse users with subtle "string literal" vs. "literal string" differences in meaning.
26 lines
953 B
Plaintext
26 lines
953 B
Plaintext
PyFile:FStringTerminatedByEscapedLineBreakInNestedStringLiteral.py
|
|
PyAssignmentStatement
|
|
PyTargetExpression: s
|
|
PsiElement(Py:IDENTIFIER)('s')
|
|
PsiWhiteSpace(' ')
|
|
PsiElement(Py:EQ)('=')
|
|
PsiWhiteSpace(' ')
|
|
PyStringLiteralExpression: {f'''{'\
|
|
'}'''}
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f"')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyStringLiteralExpression: {'\
|
|
'}
|
|
PyFormattedStringElement
|
|
PsiElement(Py:FSTRING_START)('f'''')
|
|
PyFStringFragment
|
|
PsiElement(Py:FSTRING_FRAGMENT_START)('{')
|
|
PyStringLiteralExpression:
|
|
|
|
PsiElement(Py:SINGLE_QUOTED_STRING)(''\\n'')
|
|
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
|
|
PsiElement(Py:FSTRING_END)(''''')
|
|
PsiElement(Py:FSTRING_FRAGMENT_END)('}')
|
|
PsiElement(Py:FSTRING_END)('"') |