grammar : parse \- in char classes as literal hyphen (#27591)
* grammar : accept "\-" escape in character classes gbnf_escape_char_class() escapes '-' as "\-" but parse_char() rejected that escape, so generated tool-call grammars failed to parse. Assisted-by: Claude Code <claude@anthropic.com> * tests : add parser test for "\-" in char classes Assisted-by: Claude Code <claude@anthropic.com> * tests : add integration test for "\-" in char classes Assisted-by: Claude Code <claude@anthropic.com> * tests : drop integration and parser tests
S
Saad Ali committed
eb25b7263e1604b4382295563f5a924002d6f87c
Parent: 814d84b
Committed by GitHub <noreply@github.com>
on 8/25/2026, 6:05:24 AM