common : fix ambiguous grammar rule in gemma4 (#21661)
* common : fix ambiguous grammar rule in gemma4 * cont : fix missing comma...
This commit is contained in:
+1
-1
@@ -1124,7 +1124,7 @@ static common_chat_params common_chat_params_init_gemma4(const common_chat_templ
|
|||||||
p.rule("gemma4-bool", p.json_bool());
|
p.rule("gemma4-bool", p.json_bool());
|
||||||
p.rule("gemma4-null", p.json_null());
|
p.rule("gemma4-null", p.json_null());
|
||||||
p.rule("gemma4-number", p.json_number());
|
p.rule("gemma4-number", p.json_number());
|
||||||
p.rule("gemma4-dict-key", p.rule("gemma4-dict-key-name", p.until(":")) + p.literal(":"));
|
p.rule("gemma4-dict-key", p.rule("gemma4-dict-key-name", p.chars("[^:}]", 1, -1)) + p.literal(":"));
|
||||||
p.rule("gemma4-dict-kv", p.ref("gemma4-dict-key") + p.space() + p.ref("gemma4-value"));
|
p.rule("gemma4-dict-kv", p.ref("gemma4-dict-key") + p.space() + p.ref("gemma4-value"));
|
||||||
p.rule("gemma4-dict", [&]() {
|
p.rule("gemma4-dict", [&]() {
|
||||||
auto ws = p.space();
|
auto ws = p.space();
|
||||||
|
|||||||
Reference in New Issue
Block a user