`{@see Ref ...}` anywhere on the line, outside code spans. */
| 276 | |
| 277 | /* `{@see Ref ...}` anywhere on the line, outside code spans. */ |
| 278 | static void php_line_inline(const php_emit_t *em, const php_line_t *ln, const bool *mask) { |
| 279 | for (size_t i = 0; i + PHP_INLINE_LEN <= ln->n; i++) { |
| 280 | if (mask[i] || memcmp(ln->p + i, "{@see", PHP_INLINE_LEN) != 0) { |
| 281 | continue; |
| 282 | } |
| 283 | size_t j = i + PHP_INLINE_LEN; |
| 284 | if (j < ln->n && ln->p[j] != '}' && !isspace((unsigned char)ln->p[j])) { |
| 285 | continue; /* {@seealso} or another word */ |
| 286 | } |
| 287 | j = php_skip_space(ln->p, j, ln->n); |
| 288 | size_t k = j; |
| 289 | while (k < ln->n && ln->p[k] != '}' && !isspace((unsigned char)ln->p[k])) { |
| 290 | k++; |
| 291 | } |
| 292 | php_push(em, ln->p + j, k - j, ln->line); |
| 293 | i = k; |
| 294 | } |
| 295 | } |
| 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) { |
no test coverage detected