with open('D:\\app\\ai\\app-grosir\\lib\\screens\\produk_screen.dart', 'r') as f: lines = f.readlines() for i in range(493, 644): line = lines[i] in_string = False escape = False for j, c in enumerate(line): if escape: escape = False continue if c == '\\': escape = True continue if c in "'\"": in_string = not in_string continue if in_string: continue if c == '(': print(f'{i+1}:{j+1} OPEN | {line.rstrip()}') elif c == ')': print(f'{i+1}:{j+1} CLOSE | {line.rstrip()}')