eMatch) {
          currentScope = null; // 退出当前作用域
          resultLines.push(line);
          continue;
        }

        const kvMatch = line.match(keyValuePattern);
        if (!kvMatch) {
          resultLines.push(line);
          continue;
        }

        const leadingSpaces = kvMatch[1];
        const rawKey = kvMatch[2];
        const rawVal = kvMatch[3];
        const trailingComma = kvMatch[4];

        let parsedKey, parsedVal;
        try {
          parsedKey = JSON.parse(`"$