From 013457885a23a5006bbb47be1ce4e371a12df3de Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sun, 3 Sep 2023 19:10:43 +0300 Subject: [PATCH] grammar : remove one nested level --- grammars/json_arr.gbnf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grammars/json_arr.gbnf b/grammars/json_arr.gbnf index 653119d88..ef53e77a0 100644 --- a/grammars/json_arr.gbnf +++ b/grammars/json_arr.gbnf @@ -5,10 +5,10 @@ root ::= arr value ::= object | array | string | number | ("true" | "false" | "null") ws arr ::= - "{\n\t[\n" ws ( + "[\n" ws ( value (",\n" ws value)* - )? "\t]\n}" + )? "]" object ::= "{" ws (