def preprocess_belscript(lines):
set_flag = False<EOL>for line in lines:<EOL><INDENT>if set_flag is False and re.match("<STR_LIT>", line):<EOL><INDENT>set_flag = True<EOL>set_line = [line.rstrip()]<EOL><DEDENT>elif set_flag and re.match("<STR_LIT>", line):<EOL><INDENT>yield f"<STR_LIT>"<EOL>set_line = [line.rstrip()]<EOL><DEDENT>elif set_flag and re.match("<STR_LIT>", line):<EOL><INDENT>yield f"<STR_LIT>"<EOL>yield line<EOL>set_flag = False<EOL><DEDENT>elif set_flag:<EOL><INDENT>set_line.append(line.rstrip())<EOL><DEDENT>else:<EOL><INDENT>yield line<EOL><DEDENT><DEDENT>
Convert any multi-line SET statements into single line SET statements