class Asciidoctor::Reader
def skip_comment_lines
=> ["bar"]
@lines
=> nil
comment_lines = skip_comment_lines
=> ["// foo", "bar"]
@lines
Examples
Public: Skip consecutive comment lines and block comments.
def skip_comment_lines return if empty? while (next_line = peek_line) && !next_line.empty? if next_line.start_with? '//' if next_line.start_with? '///' if (ll = next_line.length) > 3 && next_line == '/' * ll read_lines_until terminator: next_line, skip_first_line: true, read_last_line: true, skip_processing: true, context: :comment else break end else shift end else break end end nil end