mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-25 22:17:21 +08:00
f-string syntax in Python 3.8 was enhanced
See e.g. https://twitter.com/raymondh/status/1135253771846471680
This commit is contained in:
1 parent
917b4421f3
commit
6cdd47fe2b
3 files changed
+7
-3
No files matched your search
@@ -153,5 +153,5 @@ strings: (STRING | fstring)+
|
||||
fstring: FSTRING_START fstring_content* FSTRING_END
|
||||
fstring_content: FSTRING_STRING | fstring_expr
|
||||
fstring_conversion: '!' NAME
|
||||
fstring_expr: '{' testlist [ fstring_conversion ] [ fstring_format_spec ] '}'
|
||||
fstring_expr: '{' testlist ['='] [ fstring_conversion ] [ fstring_format_spec ] '}'
|
||||
fstring_format_spec: ':' fstring_content*
|
||||
Reference in new issue
Block a user