| 527 | /* ── Word evaluation ───────────────────────────────────────────────── */ |
| 528 | |
| 529 | static const char *sh_text(sh_t *s, TSNode n) { |
| 530 | uint32_t b = ts_node_start_byte(n); |
| 531 | uint32_t e = ts_node_end_byte(n); |
| 532 | return cbm_arena_strndup(s->a, s->src + b, e - b); |
| 533 | } |
| 534 | |
| 535 | static bool sh_type(TSNode n, const char *t) { |
| 536 | return !ts_node_is_null(n) && strcmp(ts_node_type(n), t) == 0; |
no test coverage detected