The end of an identifier at s[i] (i when there is none). */
| 439 | |
| 440 | /* The end of an identifier at s[i] (i when there is none). */ |
| 441 | static size_t pr_ident_end(const char *s, size_t i, size_t n) { |
| 442 | if (i >= n || !pr_ident_start(s[i])) { |
| 443 | return i; |
| 444 | } |
| 445 | while (i < n && pr_ident_char(s[i])) { |
| 446 | i++; |
| 447 | } |
| 448 | return i; |
| 449 | } |
| 450 | |
| 451 | /* The end of a name (`\`-joined identifiers, a leading `\` allowed) at s[0]. */ |
| 452 | static size_t pr_name_end(const char *s, size_t n) { |
no test coverage detected