elif previous_line == "\n":
stop_reading = True
previous_line = None
sentence += line
else:
sentence += line
if not stop_reading:
continue
stop_reading = False
nodes = sentence.split("\n")
comment_nodes = [node for node in nodes if node.startswith("//")]
has_sent_id = False
has_text = False
After Change
global error_count
base_name = basename(file)
for i, sentence in fetch_sentence(file):
nodes = sentence.strip().split("\n")
i_start = i - len(nodes) + 1
comment_nodes = [node for node in nodes if node.startswith("//")]
has_sent_id = False