`\s*\)?\s*\(` at `i` → position after the `(`. The optional `)` needs no backtracking: retrying without a consumed `)` lands `\(` on that `)`.
(s: &[u8], i: usize)
| 337 | |
| 338 | /// `\s*\)?\s*\(` at `i` → position after the `(`. The optional `)` needs no |
| 339 | /// backtracking: retrying without a consumed `)` lands `\(` on that `)`. |
| 340 | fn close_call_tail(s: &[u8], i: usize) -> Option<usize> { |
| 341 | let mut j = skip_jsws(s, i); |
| 342 | if s.get(j) == Some(&b')') { |
| 343 | j = skip_jsws(s, j + 1); |
| 344 | } |
| 345 | if s.get(j) == Some(&b'(') { |
| 346 | return Some(j + 1); |
| 347 | } |
| 348 | None |
| 349 | } |
| 350 | |
| 351 | // ---------- scanners ---------- |
no test coverage detected