An inline tag `{@name body}` whose body is t[b, e) and starts on `line`: * its reference. */
| 432 | /* An inline tag `{@name body}` whose body is t[b, e) and starts on `line`: |
| 433 | * its reference. */ |
| 434 | static void jv_java_inline(jv_doc_t *d, size_t b, size_t e, uint32_t line, int syntax) { |
| 435 | const char *t = d->t; |
| 436 | for (; b < e && jv_blank(t[b]); b++) { |
| 437 | line += t[b] == '\n'; |
| 438 | } |
| 439 | if (syntax == CBM_DOCLINK_JAVA_VALUE && b < e && t[b] == '"') { |
| 440 | /* {@value "format" ref}: the format string is not the reference */ |
| 441 | size_t q = b + SKIP_ONE; |
| 442 | while (q < e && t[q] != '"') { |
| 443 | line += t[q] == '\n'; |
| 444 | q++; |
| 445 | } |
| 446 | for (b = q < e ? q + SKIP_ONE : e; b < e && jv_blank(t[b]); b++) { |
| 447 | line += t[b] == '\n'; |
| 448 | } |
| 449 | } |
| 450 | size_t r = jv_java_ref(t + b, e - b); |
| 451 | if (r > 0) { |
| 452 | jv_push(d, t + b, r, line, syntax); |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | /* An open inline tag. javadoc ends it at the brace that balances its own |
| 457 | * `{`; braces outside inline tags are plain text and balance nothing. */ |
no test coverage detected