mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-28 23:23:20 +08:00
Remove clutter from the grammar
This commit is contained in:
1 parent
b1aa7c6a79
commit
97f042c6ba
1 file changed
+1
-1
@@ -151,7 +151,7 @@ yield_arg: 'from' test | testlist
|
|||||||
|
|
||||||
strings: (STRING | fstring)+
|
strings: (STRING | fstring)+
|
||||||
fstring: FSTRING_START fstring_content* FSTRING_END
|
fstring: FSTRING_START fstring_content* FSTRING_END
|
||||||
fstring_content: (FSTRING_STRING | fstring_expr)
|
fstring_content: FSTRING_STRING | fstring_expr
|
||||||
fstring_conversion: '!' NAME
|
fstring_conversion: '!' NAME
|
||||||
fstring_expr: '{' testlist [ fstring_conversion ] [ fstring_format_spec ] '}'
|
fstring_expr: '{' testlist [ fstring_conversion ] [ fstring_format_spec ] '}'
|
||||||
fstring_format_spec: ':' fstring_content*
|
fstring_format_spec: ':' fstring_content*
|
||||||
Reference in new issue
Block a user