This commit is contained in:
Regen
2022-04-30 02:28:35 +09:00
committed by GitHub
parent 4dec2f5afa
commit 6a3140f105
6 changed files with 115 additions and 521 deletions

View File

@@ -44,9 +44,12 @@ class ListParser(object):
identifier = pp.Word(pp.alphas + "_", pp.alphanums + "_")
arguments = pp.Forward()
arguments << pp.ZeroOrMore(
argument | line_ending | space_plus | "(" + arguments + ")"
).leaveWhitespace()
(
arguments
<< pp.ZeroOrMore(
argument | line_ending | space_plus | "(" + arguments + ")"
).leaveWhitespace()
)
arguments = pp.Group(arguments)
PAREN_L, PAREN_R = map(pp.Suppress, "()")
command_invocation = (