Fix a few fstring error gatherings

This commit is contained in:
Dave Halter
2018-04-06 09:50:07 +02:00
parent a3e280c2b9
commit 9d2ce4bcd4
5 changed files with 36 additions and 4 deletions

View File

@@ -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_comp [ fstring_conversion ] [ fstring_format_spec ] '}'
fstring_format_spec: ':' fstring_content*