mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-29 23:47:29 +08:00
A first implementation of the fstring tokenizer
This commit is contained in:
@@ -152,5 +152,6 @@ yield_arg: 'from' test | testlist
|
||||
strings: (STRING | fstring)+
|
||||
fstring: FSTRING_START fstring_content FSTRING_END
|
||||
fstring_content: (FSTRING_STRING | fstring_expr)*
|
||||
fstring_expr: '{' testlist [ FSTRING_CONVERSION ] [ fstring_format_spec ] '}'
|
||||
fstring_conversion: '!' NAME
|
||||
fstring_expr: '{' testlist [ fstring_conversion ] [ fstring_format_spec ] '}'
|
||||
fstring_format_spec: ':' fstring_content
|
||||
|
||||
Reference in New Issue
Block a user