diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-10-30 23:48:42 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-30 23:48:42 (GMT) |
commit | 06f8c3328dcd81c84d1ee2b3a57b5381dcb38482 (patch) | |
tree | cc3ad1395744a8eba15c779480a9ce9276e8bc5f /Grammar/python.gram | |
parent | 6e03c0ad156797cd6e9132e895d55dac0344d340 (diff) | |
download | cpython-06f8c3328dcd81c84d1ee2b3a57b5381dcb38482.zip cpython-06f8c3328dcd81c84d1ee2b3a57b5381dcb38482.tar.gz cpython-06f8c3328dcd81c84d1ee2b3a57b5381dcb38482.tar.bz2 |
bpo-42214: Fix check for NOTEQUAL token in the PEG parser for the barry_as_flufl rule (GH-23048)
Diffstat (limited to 'Grammar/python.gram')
-rw-r--r-- | Grammar/python.gram | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Grammar/python.gram b/Grammar/python.gram index b8da554..ae5e4b5 100644 --- a/Grammar/python.gram +++ b/Grammar/python.gram @@ -428,7 +428,7 @@ compare_op_bitwise_or_pair[CmpopExprPair*]: | is_bitwise_or eq_bitwise_or[CmpopExprPair*]: '==' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, Eq, a) } noteq_bitwise_or[CmpopExprPair*]: - | (tok='!=' {_PyPegen_check_barry_as_flufl(p) ? NULL : tok}) a=bitwise_or {_PyPegen_cmpop_expr_pair(p, NotEq, a) } + | (tok='!=' { _PyPegen_check_barry_as_flufl(p, tok) ? NULL : tok}) a=bitwise_or {_PyPegen_cmpop_expr_pair(p, NotEq, a) } lte_bitwise_or[CmpopExprPair*]: '<=' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, LtE, a) } lt_bitwise_or[CmpopExprPair*]: '<' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, Lt, a) } gte_bitwise_or[CmpopExprPair*]: '>=' a=bitwise_or { _PyPegen_cmpop_expr_pair(p, GtE, a) } |