# File lib/asciidoctor/reader.rb, line 164 def consume_line_comments comment_lines = [] # optimized code for shortest execution path while !(next_line = get_line).nil? if next_line.match(REGEXP[:comment]) comment_lines << next_line else unshift_line next_line break end end comment_lines end