mirror of
https://github.com/open-goal/jak-project
synced 2026-08-21 23:00:45 -04:00
d/jak2: finish mood-funcs | mood-funcs2 | almost all of mood and airlock (#1842)
This commit is contained in:
@@ -114,7 +114,7 @@ def lookahead_for_code(lines, index):
|
||||
|
||||
# returns form, or none
|
||||
def is_line_start_of_form(line):
|
||||
if line.rstrip().startswith(";"):
|
||||
if line.lstrip().startswith(";"):
|
||||
return None
|
||||
matches = re.search(r"\(\s*([^\s.]*)\s+", line)
|
||||
if matches is not None:
|
||||
|
||||
@@ -142,10 +142,10 @@ with open(decomp_file_path) as f:
|
||||
if not skip_form:
|
||||
decomp_form_def_lines.append(decomp_within_form)
|
||||
decomp_lines.append(line)
|
||||
while i < len(lines):
|
||||
while i + 1 < len(lines):
|
||||
i = i + 1
|
||||
line = lines[i]
|
||||
if not skip_form:
|
||||
if not skip_form and not should_ignore_line(line):
|
||||
decomp_lines.append(line)
|
||||
if has_form_ended(decomp_form_paren_stack, line):
|
||||
decomp_within_form = None
|
||||
|
||||
Reference in New Issue
Block a user