mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 06:09:33 +08:00
_split_command_args toggled its in-string state with a single-char check (current[-1] != '\\'), so a real closing quote preceded by an escaped backslash (\\") was misread as escaped. The parser stayed in-string, swallowed the following comma separators, and returned the whole remainder as one argument — e.g. Text["a\\", 1, 2] was reported as an unterminated string and its scalar-to-point repair was lost. Track escaping with a flag that flips on each unescaped backslash so an even run closes the string. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>