(s: string, i: number)
| 579 | const IDENTIFIER = /[A-Za-z_$][\w$]*/y; |
| 580 | |
| 581 | function readIdentifier(s: string, i: number): string | null { |
| 582 | IDENTIFIER.lastIndex = i; |
| 583 | return IDENTIFIER.exec(s)?.[0] ?? null; |
| 584 | } |
| 585 | |
| 586 | function skipSpace(s: string, i: number): number { |
| 587 | while (i < s.length && /\s/.test(s[i]!)) i++; |
no test coverage detected