Remove clutter from the grammar

This commit is contained in:
Dave Halter
2018-03-31 14:26:12 +02:00
parent b1aa7c6a79
commit 97f042c6ba

View File

@@ -151,7 +151,7 @@ yield_arg: 'from' test | testlist
strings: (STRING | fstring)+
fstring: FSTRING_START fstring_content* FSTRING_END
fstring_content: (FSTRING_STRING | fstring_expr)
fstring_content: FSTRING_STRING | fstring_expr
fstring_conversion: '!' NAME
fstring_expr: '{' testlist [ fstring_conversion ] [ fstring_format_spec ] '}'
fstring_format_spec: ':' fstring_content*