The lines of one block comment body [c, end); returns the line breaks in it. */
| 619 | |
| 620 | /* The lines of one block comment body [c, end); returns the line breaks in it. */ |
| 621 | static uint32_t go_block_comment(go_doc_t *d, const char *c, const char *end, uint32_t line) { |
| 622 | uint32_t added = 0; |
| 623 | for (;;) { |
| 624 | const char *nl = (const char *)memchr(c, '\n', (size_t)(end - c)); |
| 625 | const char *le = nl ? nl : end; |
| 626 | go_push_line(d, c, (size_t)(le - c), line + added); |
| 627 | if (!nl) { |
| 628 | return added; |
| 629 | } |
| 630 | added++; |
| 631 | c = nl + SKIP_ONE; |
| 632 | } |
| 633 | } |
| 634 | |
| 635 | /* ast.CommentGroup.Text over the stored comment group: one comment per text |
| 636 | * line, a block comment keeping its own lines. Text line k of the group is |
no test coverage detected