From bf4c17176451b0483b72234e4e1d54d577291ccb Mon Sep 17 00:00:00 2001 From: wiiznokes <78230769+wiiznokes@users.noreply.github.com> Date: Wed, 18 Feb 2026 00:37:47 +0100 Subject: [PATCH 1/2] add ws after [ in list --- docs/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/grammar.md b/docs/grammar.md index 1d0e6cc5f..fca4518b9 100644 --- a/docs/grammar.md +++ b/docs/grammar.md @@ -142,7 +142,7 @@ option_some = "Some", ws, "(", ws, value, ws, ")"; ## List ```ebnf -list = "[", [value, { comma, value }, [comma]], "]"; +list = "[", ws, [value, { comma, value }, [comma]], "]"; ``` ## Map From d2ca357cdee5b2382feb8d91c505291d61d4670a Mon Sep 17 00:00:00 2001 From: wiiznokes <78230769+wiiznokes@users.noreply.github.com> Date: Mon, 9 Mar 2026 17:07:21 +0100 Subject: [PATCH 2/2] Update grammar.md --- docs/grammar.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/grammar.md b/docs/grammar.md index fca4518b9..6dc468e99 100644 --- a/docs/grammar.md +++ b/docs/grammar.md @@ -164,7 +164,7 @@ tuple = "(", [value, { comma, value }, [comma]], ")"; struct = unit_struct | tuple_struct | named_struct; unit_struct = ident | "()"; tuple_struct = [ident], ws, tuple; -named_struct = [ident], ws, "(", ws, [named_field, { comma, named_field }, [comma]], ")"; +named_struct = [ident], ws, "(", ws, [named_field, { comma, named_field }, [comma]], ws, ")"; named_field = ident, ws, ":", ws, value; ```