A blank line: only its line break (and a byte order mark) is kept.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(writer_t), | intent(inout) | :: | w |
the output and the alignment state |
||
| character(len=*), | intent(in) | :: | src |
the source text |
||
| type(token_list_t), | intent(in) | :: | tokens |
its tokens |
||
| type(statement_t), | intent(in) | :: | s |
the blank line item |
subroutine emit_blank(w, src, tokens, s) !! A blank line: only its line break (and a byte order mark) is kept. type(writer_t), intent(inout) :: w !! the output and the alignment state character(len=*), intent(in) :: src !! the source text type(token_list_t), intent(in) :: tokens !! its tokens type(statement_t), intent(in) :: s !! the blank line item integer :: j do j = s%first, s%last if (tokens%tok(j)%kind == TK_NEWLINE .or. tokens%tok(j)%kind == TK_BOM) & call put(w, token_text(src, tokens%tok(j))) end do end subroutine emit_blank