INNER CODE UNIT · Python

end2

Cooler2/ApusGameEngine · tools/normalize_indent.py:187

        end2 = -1
        for k2 in range(j2, n):
            ks2 = lines[k2].strip().lower()
            ki2 = get_indent(lines[k2])
            if not found2:
                if ki2 < pi and k2 > j2:
                    break
                if ki2 == pi and (ks2 == 'begin' or ks2.startswith('begin ')):
                    found2 = True
                    depth2 = 1
            else:
                depth2 += _block_delta(lines[k2])
                if depth2 <= 0:
                    end2 = k2
                    break
        if not found2 or end2 < 0:
            continue
        for idx in range(j2, end2 + 1):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…