method

find_lineno_offset

find_lineno_offset(compiled, source_lines, highlight, error_lineno)
private

Return the offset between the error lineno and the source lineno. Searches in reverse from the backtrace lineno so we have a better chance of finding the correct line

The compiled template is likely to be longer than the source. Use the difference between the compiled and source sizes to determine the earliest line that could contain the highlight.