INNER CODE UNIT · Python

j2

Cooler2/ApusGameEngine · tools/normalize_indent.py:175

        j2 = i + 1
        while j2 < n and not lines[j2].strip():
            j2 += 1
        if j2 >= n:
            continue
        nxt_s2 = lines[j2].strip().lower()
        nxt_i2 = get_indent(lines[j2])
        if not (nxt_i2 == pi and nxt_s2 in ('var', 'begin', 'const', 'type')):
            continue
        # find body begin at proc_indent
        found2 = False
        depth2 = 0
        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:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…