(P: ParseState, stop: string)
| 4424 | } |
| 4425 | |
| 4426 | function isArithStop(P: ParseState, stop: string): boolean { |
| 4427 | const c = peek(P.L) |
| 4428 | if (stop === '))') return c === ')' && peek(P.L, 1) === ')' |
| 4429 | if (stop === ')') return c === ')' |
| 4430 | if (stop === ';') return c === ';' |
| 4431 | if (stop === ':') return c === ':' |
| 4432 | if (stop === ']') return c === ']' |
| 4433 | if (stop === '}') return c === '}' |
| 4434 | if (stop === ':}') return c === ':' || c === '}' |
| 4435 | return c === '' || c === '\n' |
| 4436 | } |
| 4437 |
no test coverage detected