Lines Matching refs:endif
39 line.start_with?( 'endif::' ) && line.end_with?('[]')
43 line.delete_prefix('ifdef::').delete_prefix('ifndef::').delete_prefix('endif::').delete_suffix('[]')
55 # Try to match each endif to a previously defined conditional, logging errors as it goes
79 logger.error message_with_context %(unmatched conditional "#{conditional.line}" with no endif), source_location: conditional.cursor
81 # Insert an endif statement so asciidoctor's default reader does not throw extraneous mismatch errors.
89 # ifdef::undefined_attribute[] // should be an endif
91 # // Script adds 2 'endif::undefined_attribute[]' lines here
92 # endif::another_attribute[] // Irrelevant whether this is defined or not
95 extra_line = %(endif::#{conditional.attributes}[])
109 # If no match was found, then this is an orphaned endif
110 logger.error message_with_context %(unmatched endif - found "#{line}" with no matching conditional begin), source_location: cursor
112 # Hide the endif so that asciidoctor's default reader does not try to match it anyway