Correct long-literals for Python 2.7

This commit is contained in:
rocky
2022-10-16 19:33:51 -04:00
parent bb9b9fb4b3
commit 5b3ea47bac
8 changed files with 26 additions and 11 deletions

View File

@@ -315,7 +315,9 @@ class Python2Parser(PythonParser):
if opname in ("BUILD_CONST_LIST", "BUILD_CONST_SET"):
rule = (
"""
add_consts ::= ADD_VALUE*
add_consts ::= add_value+
add_value ::= ADD_VALUE
add_value ::= ADD_VALUE_VAR
const_list ::= COLLECTION_START add_consts %s
expr ::= const_list
"""