()
| 442 | } |
| 443 | |
| 444 | private parseInlineTable(): Table { |
| 445 | this.expect("{") |
| 446 | const output = makeTable() |
| 447 | while (true) { |
| 448 | this.skipWhitespace() |
| 449 | if (this.peek() === "}") { |
| 450 | this.advance() |
| 451 | return output |
| 452 | } |
| 453 | const keys = this.parseKeyPath("=") |
| 454 | this.skipInlineWhitespace() |
| 455 | this.expect("=") |
| 456 | this.skipInlineWhitespace() |
| 457 | this.assign(output, keys, this.parseValue()) |
| 458 | this.skipWhitespace() |
| 459 | if (this.peek() === "}") { |
| 460 | this.advance() |
| 461 | return output |
| 462 | } |
| 463 | this.expect(",") |
| 464 | } |
| 465 | } |
| 466 | |
| 467 | private skipInlineWhitespace(): void { |
| 468 | while (this.peek() === " " || this.peek() === "\t") { |
no test coverage detected