Length of the run of `c` at src[i]. */
| 1461 | |
| 1462 | /* Length of the run of `c` at src[i]. */ |
| 1463 | static uint32_t cs_lex_run(cs_lex_t *lx, uint32_t i, char c) { |
| 1464 | uint32_t j = i; |
| 1465 | while (j < lx->n && lx->src[j] == c) { |
| 1466 | j++; |
| 1467 | } |
| 1468 | lx->steps += (uint64_t)(j - i) + SKIP_ONE; |
| 1469 | return j - i; |
| 1470 | } |
| 1471 | |
| 1472 | /* 'x', '\n', 'A': past the literal, or past the lone quote when it is |
| 1473 | * not one. */ |
no outgoing calls
no test coverage detected