mirror of
https://github.com/davidhalter/parso.git
synced 2026-01-11 22:12:40 +08:00
Add 'f-string: expressions nested too deeply' issue.
This commit is contained in:
@@ -38,7 +38,8 @@ class TokenNamespace:
|
||||
START_SYMBOL = 'fstring'
|
||||
GRAMMAR = """
|
||||
fstring: expression* ENDMARKER
|
||||
expression: '{' PYTHON_EXPR [ '!' CONVERSION ] [ ':' expression* ] '}'
|
||||
format_spec: ':' expression*
|
||||
expression: '{' PYTHON_EXPR [ '!' CONVERSION ] [ format_spec ] '}'
|
||||
"""
|
||||
|
||||
_prefix = r'((?:[^{}]+)*)'
|
||||
|
||||
Reference in New Issue
Block a user