`@see Ref` at the start of a tag line. */
| 296 | |
| 297 | /* `@see Ref` at the start of a tag line. */ |
| 298 | static void php_line_see(const php_emit_t *em, const php_line_t *ln) { |
| 299 | if (ln->n < PHP_SEE_LEN || memcmp(ln->p, "@see", PHP_SEE_LEN) != 0 || |
| 300 | (ln->n > PHP_SEE_LEN && !isspace((unsigned char)ln->p[PHP_SEE_LEN]))) { |
| 301 | return; |
| 302 | } |
| 303 | size_t j = php_skip_space(ln->p, PHP_SEE_LEN, ln->n); |
| 304 | if (j < ln->n && ln->p[j] == '{') { |
| 305 | return; /* @see {@see Ref}: the inline tag is the reference */ |
| 306 | } |
| 307 | size_t k = j; |
| 308 | while (k < ln->n && !isspace((unsigned char)ln->p[k])) { |
| 309 | k++; |
| 310 | } |
| 311 | php_push(em, ln->p + j, k - j, ln->line); |
| 312 | } |
| 313 | |
| 314 | void cbm_doclink_php_parse_doc(CBMExtractCtx *ctx, const CBMDefinition *def, const char *doc, |
| 315 | uint32_t doc_line) { |
no test coverage detected