From b1ebaac5c08407ddd680041cae918b9341fea5be Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 18 May 2025 13:53:00 +0200 Subject: fix replace Optional(...) with Choice(0, ... , Skip()) --- def_LinkLabel.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'def_LinkLabel.py') diff --git a/def_LinkLabel.py b/def_LinkLabel.py index 4001f7a..cefebce 100755 --- a/def_LinkLabel.py +++ b/def_LinkLabel.py @@ -9,9 +9,9 @@ from railroad import * Diagram( Start("complex"), "[", - Optional(NonTerminal("_")), + Choice(0, (NonTerminal("_")), Skip()), NonTerminal("![\\[\\]] PlainWords"), - Optional(NonTerminal("_")), + Choice(0, (NonTerminal("_")), Skip()), "]", End("complex") ).writeStandalone( -- cgit v1.2.3